Sha256: ea730ba37b188f994fb51858c16fe914adfbe4ace2c034d918db4e214ab3d8e0

Contents?: true

Size: 331 Bytes

Versions: 4

Compression:

Stored size: 331 Bytes

Contents

class <%= singular_camel_case_name %> < ActiveRecord::Base

  is_private_message<% unless singular_camel_case_parent == "User" %> :class_name => "<%= "#{singular_camel_case_parent}" %>"<% end %>
  
  # The :to accessor is used by the scaffolding,
  # uncomment it if using it or you can remove it if not
  #attr_accessor :to
  
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
user_private_messages-1.0.1 lib/generators/user_private_messages/model/templates/model.rb
user_private_messages-1.0.0 lib/generators/simple_private_messages/model/templates/model.rb
rails_private_messages-0.0.2 lib/generators/private_messages/model/templates/model.rb
rails_private_messages-0.0.1 lib/generators/private_messages/model/templates/model.rb