Module: Obviews::Controller
Defined Under Namespace
Modules: ClassMethods, Exposure
Instance Attribute Summary
Attributes included from Exposure
Instance Method Summary collapse
Methods included from Exposure
Instance Method Details
#view_assigns ⇒ Object
31 32 33 34 35 36 |
# File 'lib/obviews/controller.rb', line 31 def view_assigns exposed_methods = (self.class._exposed_methods + _exposed_methods).map(&:to_sym) exposed_values = (self.class._exposed_values.merge(_exposed_values)) exposed_assigns = ExposedAssigns.new self, exposed_methods exposed_assigns.merge! exposed_values end |