Class: ShouldaMatchmakers::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/shoulda_matchmakers.rb', line 28

def initialize

  @active_record_class_names_included = %w()
  @active_record_class_names_excluded = %w()
  @active_record_model_tests_path     = 'spec/shoulda_matchmakers/models/active_record'

  @action_controller_controller_names_included = %w()
  @action_controller_controller_names_excluded = %w()
  @action_controller_controller_tests_path     = 'spec/shoulda_matchmakers/controllers/action_controller'

  @active_record_model_class_names_for_factories_included = %w()
  @active_record_model_class_names_for_factories_excluded = %w()
  @active_record_model_factories_path                     = 'spec/shoulda_matchmakers/factories/active_record'

  @include_enums = true
  @preferred_generated_code_line_length = 120

end

Instance Attribute Details

#action_controller_controller_names_excludedObject

Returns the value of attribute action_controller_controller_names_excluded.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def action_controller_controller_names_excluded
  @action_controller_controller_names_excluded
end

#action_controller_controller_names_includedObject

Returns the value of attribute action_controller_controller_names_included.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def action_controller_controller_names_included
  @action_controller_controller_names_included
end

#action_controller_controller_tests_pathObject

Returns the value of attribute action_controller_controller_tests_path.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def action_controller_controller_tests_path
  @action_controller_controller_tests_path
end

#active_record_class_names_excludedObject

Returns the value of attribute active_record_class_names_excluded.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def active_record_class_names_excluded
  @active_record_class_names_excluded
end

#active_record_class_names_includedObject

Returns the value of attribute active_record_class_names_included.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def active_record_class_names_included
  @active_record_class_names_included
end

#active_record_model_class_names_for_factories_excludedObject

Returns the value of attribute active_record_model_class_names_for_factories_excluded.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def active_record_model_class_names_for_factories_excluded
  @active_record_model_class_names_for_factories_excluded
end

#active_record_model_class_names_for_factories_includedObject

Returns the value of attribute active_record_model_class_names_for_factories_included.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def active_record_model_class_names_for_factories_included
  @active_record_model_class_names_for_factories_included
end

#active_record_model_factories_pathObject

Returns the value of attribute active_record_model_factories_path.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def active_record_model_factories_path
  @active_record_model_factories_path
end

#active_record_model_tests_pathObject

Returns the value of attribute active_record_model_tests_path.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def active_record_model_tests_path
  @active_record_model_tests_path
end

#include_enumsObject

Returns the value of attribute include_enums.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def include_enums
  @include_enums
end

#preferred_generated_code_line_lengthObject

Returns the value of attribute preferred_generated_code_line_length.



13
14
15
# File 'lib/shoulda_matchmakers.rb', line 13

def preferred_generated_code_line_length
  @preferred_generated_code_line_length
end