module Locomotive::Steam::Models::Repository::ClassMethods

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

mapper.name

end

Public Instance Methods

mapping(name, options = {}, &block) click to toggle source
# 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