lib/generators/rom/mapper/templates/mapper.rb.erb in rom-rails-0.2.1 vs lib/generators/rom/mapper/templates/mapper.rb.erb in rom-rails-0.3.0.beta1

- old
+ new

@@ -1,12 +1,10 @@ -ROM.mappers do - - define(:<%= class_name.underscore %>) do - # specify model and attributes ie - # - # model <%= class_name.classify %> - # - # attribute :name - # attribute :email - end - +class <%= model_name %>Mapper < ROM::Mapper + # relation :<%= relation %> + # + # specify model and attributes ie + # + # model <%= model_name %> + # + # attribute :name + # attribute :email end