Module: CustomAttributes::Controller
- Defined in:
- lib/custom_attributes/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/custom_attributes/controller.rb', line 4 def self.included(base) base.before_filter :set_custom_attribute_scope end |
Instance Method Details
#custom_attribute_scope ⇒ Object
override me
9 10 11 12 13 |
# File 'lib/custom_attributes/controller.rb', line 9 def custom_attribute_scope if method_name = ::CustomAttributes.scope_method self.__send__(method_name) end end |
#set_custom_attribute_scope ⇒ Object
15 16 17 |
# File 'lib/custom_attributes/controller.rb', line 15 def set_custom_attribute_scope ::CustomAttributes.scope = custom_attribute_scope end |