Module: Locomotive::Steam::Models::Repository::ClassMethods

Defined in:
lib/locomotive/steam/models/repository.rb

Overview

TODO: not sure about that. could it be used further in the dev def collection_name

mapper.name

end

Instance Method Summary collapse

Instance Method Details

#mapping(name, options = {}, &block) ⇒ Object



107
108
109
110
111
# File 'lib/locomotive/steam/models/repository.rb', line 107

def mapping(name, options = {}, &block)
  class_eval do
    define_method(:mapper_options) { [name, options, block] }
  end
end