Class: FixturesFromFactories::Configuration

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

Overview

Configuration class for initializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



26
27
28
29
30
# File 'lib/fixtures_from_factories.rb', line 26

def initialize
  @devise_password_hash = "$2a$11$M8e7PEPxv4JEx2JHLw4XnuvfVVafJjFb6DfMnODxSUy5WhIgfbF1y" # 'password' TODO: make this not use the hashed value but let it be hashed at creation time
  @excluded_tables = %w[schema_migrations spatial_ref_sys ar_internal_metadata]
  @factory_bot_definition_file_paths = nil
end

Instance Attribute Details

#devise_password_hashObject

Returns the value of attribute devise_password_hash.



24
25
26
# File 'lib/fixtures_from_factories.rb', line 24

def devise_password_hash
  @devise_password_hash
end

#excluded_tablesObject

Returns the value of attribute excluded_tables.



24
25
26
# File 'lib/fixtures_from_factories.rb', line 24

def excluded_tables
  @excluded_tables
end

#factory_bot_definition_file_pathsObject

Returns the value of attribute factory_bot_definition_file_paths.



24
25
26
# File 'lib/fixtures_from_factories.rb', line 24

def factory_bot_definition_file_paths
  @factory_bot_definition_file_paths
end