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

Instance Attribute Details

#editable_attributes=(value) ⇒ Object

Sets the attribute editable_attributes

Parameters:

  • value

    the value to set the attribute editable_attributes to.



5
6
7
# File 'lib/generators/rails_react_scaffold/generator_helpers.rb', line 5

def editable_attributes=(value)
  @editable_attributes = value
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/generators/rails_react_scaffold/generator_helpers.rb', line 5

def options
  @options
end

#viewable_attributes=(value) ⇒ Object

Sets the attribute viewable_attributes

Parameters:

  • value

    the value to set the attribute viewable_attributes to.



5
6
7
# File 'lib/generators/rails_react_scaffold/generator_helpers.rb', line 5

def viewable_attributes=(value)
  @viewable_attributes = value
end