Module: RailsReactScaffold::Generators::GeneratorHelpers
- Included in:
- ControllerGenerator
- Defined in:
- lib/generators/rails_react_scaffold/generator_helpers.rb
Overview
Some helpers for generating scaffolding
Instance Attribute Summary collapse
-
#editable_attributes ⇒ Object
writeonly
Sets the attribute editable_attributes.
-
#options ⇒ Object
Returns the value of attribute options.
-
#viewable_attributes ⇒ Object
writeonly
Sets the attribute viewable_attributes.
Instance Attribute Details
#editable_attributes=(value) ⇒ Object
Sets the attribute editable_attributes
5 6 7 |
# File 'lib/generators/rails_react_scaffold/generator_helpers.rb', line 5 def editable_attributes=(value) @editable_attributes = value end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/generators/rails_react_scaffold/generator_helpers.rb', line 5 def @options end |
#viewable_attributes=(value) ⇒ Object
Sets the attribute viewable_attributes
5 6 7 |
# File 'lib/generators/rails_react_scaffold/generator_helpers.rb', line 5 def viewable_attributes=(value) @viewable_attributes = value end |