Module: Restrict::Rails::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/restrict/rails/controller.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#inherited(subclass) ⇒ Object
6 7 8 |
# File 'lib/restrict/rails/controller.rb', line 6 def inherited(subclass) subclass.extend Restrict::Rails::Controller end |
#restrictions ⇒ Object
10 11 12 |
# File 'lib/restrict/rails/controller.rb', line 10 def restrictions inherited_restrictions + self.class.__send__(:restrict_restrictions) end |