Module: DataMapper::Reflection::Builders::Source::OptionBuilder

Included in:
Property, Relationship
Defined in:
lib/dm-reflection/builders/source_builder.rb

Instance Method Summary collapse

Instance Method Details

#backend_optionsObject



137
138
139
# File 'lib/dm-reflection/builders/source_builder.rb', line 137

def backend_options
  @backend_options ||= backend.options.dup
end

#irrelevant_optionsObject



133
134
135
# File 'lib/dm-reflection/builders/source_builder.rb', line 133

def irrelevant_options
  []
end

#option_prioritiesObject



121
122
123
# File 'lib/dm-reflection/builders/source_builder.rb', line 121

def option_priorities
  []
end

#optionsObject



117
118
119
# File 'lib/dm-reflection/builders/source_builder.rb', line 117

def options
  option_string(prioritized_options + rest_options)
end

#prioritized_optionsObject



125
126
127
# File 'lib/dm-reflection/builders/source_builder.rb', line 125

def prioritized_options
  []
end

#rest_optionsObject



129
130
131
# File 'lib/dm-reflection/builders/source_builder.rb', line 129

def rest_options
  backend_options.select { |k,v| !option_priorities.include?(k) && !irrelevant_options.include?(k) }
end