Sha256: 4232037d09103799dc8ece7657b7bd9f01efe473185ae19f0702506490f9b3ab

Contents?: true

Size: 256 Bytes

Versions: 4

Compression:

Stored size: 256 Bytes

Contents

class <%= klass %> < ActiveRecord::Base
  include Statesman::Adapters::ActiveRecordTransition

  <% unless rails_4? %>
  attr_accessible :to_state, :metadata, :sort_key
  <% end %>
  belongs_to :<%= parent.underscore %>, inverse_of: :<%= table_name %>
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
statesman-0.5.0 lib/generators/statesman/templates/active_record_transition_model.rb.erb
statesman-0.4.0 lib/generators/statesman/templates/active_record_transition_model.rb.erb
statesman-0.3.0 lib/generators/statesman/templates/active_record_transition_model.rb.erb
statesman-0.2.1 lib/generators/statesman/templates/active_record_transition_model.rb.erb