Sha256: 49486ac50de766c1851136898444186f2040a5a45cb8a46684ae496556051167

Contents?: true

Size: 225 Bytes

Versions: 25

Compression:

Stored size: 225 Bytes

Contents

class <%= model_name %>Mapper < ROM::Mapper
  relation :<%= relation %>

  register_as :<%= register_as %>

  # specify model and attributes ie
  #
  # model <%= model_name %>
  #
  # attribute :name
  # attribute :email
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rom-rails-0.5.0.rc1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.5.0.beta1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.4.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.3.3 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.3.2 lib/generators/rom/mapper/templates/mapper.rb.erb