Class: Hmvc::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hmvc/rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



24
25
26
27
28
29
30
31
32
# File 'lib/hmvc/rails.rb', line 24

def initialize
  @parent_controller = "ApplicationController"
  @action = %w[index show new create edit update destroy]
  @view = %w[index show new edit]
  @form = %w[new create edit update]
  @parent_form = "ApplicationForm"
  @parent_operation = "ApplicationOperation"
  @file_traces = true
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def action
  @action
end

#file_tracesObject

Returns the value of attribute file_traces.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def file_traces
  @file_traces
end

#formObject

Returns the value of attribute form.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def form
  @form
end

#parent_controllerObject

Returns the value of attribute parent_controller.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def parent_controller
  @parent_controller
end

#parent_formObject

Returns the value of attribute parent_form.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def parent_form
  @parent_form
end

#parent_operationObject

Returns the value of attribute parent_operation.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def parent_operation
  @parent_operation
end

#viewObject

Returns the value of attribute view.



22
23
24
# File 'lib/hmvc/rails.rb', line 22

def view
  @view
end