Sha256: 58dafdd2702e050c727fa7f8e835dd238bc69397239b68d4b9935bb1c28e16c1

Contents?: true

Size: 331 Bytes

Versions: 8

Compression:

Stored size: 331 Bytes

Contents

class <%= class_name %>
  include ActiveModel::Serialization
  include ActiveModel::Validations
<% if read_properties? %>
  attr_reader <%= read_properties %>
<% end %>
<% if write_properties? %>
  attr_writer <%= write_properties %>
<% end %>
<% if accessor_properties? %>
  attr_accessor <%= accessor_properties %>
<% end %>
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails3-generators-1.0.0 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.6 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.5 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.4 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.3 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.2 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.1 lib/generators/active_model/model/templates/model.rb
rails3-generators-0.17.0 lib/generators/active_model/model/templates/model.rb