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-2.4.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-2.3.1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-2.3.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-2.2.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-2.0.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.2.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.1.1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.1.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.0.1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.0.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.0.0.rc1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-1.0.0.beta1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.9.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.9.0.beta1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.8.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.7.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.6.0 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.6.0.rc1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.6.0.beta1 lib/generators/rom/mapper/templates/mapper.rb.erb
rom-rails-0.5.0 lib/generators/rom/mapper/templates/mapper.rb.erb