Module: ShareLayouts::Controllers::ActionController
- Defined in:
- lib/share_layouts/controllers/action_controller.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/share_layouts/controllers/action_controller.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#set_radiant_layout ⇒ Object
18 19 20 21 |
# File 'lib/share_layouts/controllers/action_controller.rb', line 18 def set_radiant_layout @radiant_layout = self.class.read_inheritable_attribute 'radiant_layout' @radiant_layout = @radiant_layout.call(self) if @radiant_layout.is_a? Proc end |