diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-24 12:54:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-24 12:54:30 +0000 |
commit | 2a947f185a23e427db332d0ae51d1efe2b8c5fb6 (patch) | |
tree | b8b6ee3a5ffa7df44d8e2b8dcafc528308163548 /actionpack/lib/action_controller | |
parent | 03b531a44eed3313b61dbece6c9f0c6180798c3e (diff) | |
download | rails-2a947f185a23e427db332d0ae51d1efe2b8c5fb6.tar.gz rails-2a947f185a23e427db332d0ae51d1efe2b8c5fb6.tar.bz2 rails-2a947f185a23e427db332d0ae51d1efe2b8c5fb6.zip |
With const_missing loading, its no longer necessary to dynamically require the scaffold model -- meaning the end of RDoc warnings!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/scaffolding.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/scaffolding.rb b/actionpack/lib/action_controller/scaffolding.rb index b52defd983..bf2e35f3f7 100644 --- a/actionpack/lib/action_controller/scaffolding.rb +++ b/actionpack/lib/action_controller/scaffolding.rb @@ -84,8 +84,6 @@ module ActionController def scaffold(model_id, options = {}) validate_options([ :class_name, :suffix ], options.keys) - require "#{model_id.id2name}" rescue logger.warn "Couldn't auto-require #{model_id.id2name}.rb" unless logger.nil? - singular_name = model_id.id2name class_name = options[:class_name] || Inflector.camelize(singular_name) plural_name = Inflector.pluralize(singular_name) |