diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-02 09:11:17 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-02 09:11:17 +0000 |
commit | 3532455404ec8449eee1054e38d1e0db40c63e15 (patch) | |
tree | 9db81fad7bd114b723f1cc5d782b412dda15752b /actionpack/lib/action_controller/pagination.rb | |
parent | 5b36c9275d979c40c7e20e9cc0415d4e8dbfd457 (diff) | |
download | rails-3532455404ec8449eee1054e38d1e0db40c63e15.tar.gz rails-3532455404ec8449eee1054e38d1e0db40c63e15.tar.bz2 rails-3532455404ec8449eee1054e38d1e0db40c63e15.zip |
Added pagination for scaffolding (10 items per page) #964 [mortonda@dgrmm.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1067 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/pagination.rb')
-rw-r--r-- | actionpack/lib/action_controller/pagination.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/pagination.rb b/actionpack/lib/action_controller/pagination.rb index b9fa01df9f..fd890c53e0 100644 --- a/actionpack/lib/action_controller/pagination.rb +++ b/actionpack/lib/action_controller/pagination.rb @@ -166,7 +166,7 @@ module ActionController :find_collection_for_pagination def paginator_and_collection_for(collection_id, options) #:nodoc: - klass = eval options[:class_name] + klass = options[:class_name].constantize page = @params[options[:parameter]] count = count_collection_for_pagination(klass, options[:conditions]) |