diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/scaffolding.rb | 5 | ||||
-rw-r--r-- | actionpack/lib/action_controller/verification.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/scaffolding.rb b/actionpack/lib/action_controller/scaffolding.rb index ac5b68b4e3..4faa23cdf3 100644 --- a/actionpack/lib/action_controller/scaffolding.rb +++ b/actionpack/lib/action_controller/scaffolding.rb @@ -1,5 +1,10 @@ module ActionController module Scaffolding # :nodoc: + def self.append_features(base) + super + base.extend(ClassMethods) + end + # Scaffolding is a way to quickly put an Active Record class online by providing a series of standardized actions # for listing, showing, creating, updating, and destroying objects of the class. These standardized actions come # with both controller logic and default templates that through introspection already know which fields to display diff --git a/actionpack/lib/action_controller/verification.rb b/actionpack/lib/action_controller/verification.rb index e65610f5ec..b0f5236adf 100644 --- a/actionpack/lib/action_controller/verification.rb +++ b/actionpack/lib/action_controller/verification.rb @@ -27,6 +27,11 @@ module ActionController #:nodoc: # :redirect_to => :category_url # module Verification + def self.append_features(base) #:nodoc: + super + base.extend(ClassMethods) + end + module ClassMethods # Verify the given actions so that if certain prerequisites are not met, # the user is redirected to a different action. The +options+ parameter |