Module: Neo::Rails::Exposure::ClassMethods
- Defined in:
- lib/neo/rails/exposure.rb
Instance Method Summary collapse
-
#exposes(*names) ⇒ Object
Defines the variables to be exposed.
Instance Method Details
#exposes(*names) ⇒ Object
Defines the variables to be exposed.
19 20 21 22 23 24 |
# File 'lib/neo/rails/exposure.rb', line 19 def exposes(*names) exposures = names.map(&:to_sym) self.exposed_vars.merge exposures attr_reader *exposures helper_method *exposures end |