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

  <% unless rails_4? %>
  attr_accessible :to_state, :metadata, :sort_key
  <% end %>
  belongs_to :<%= parent_name %><%= class_name_option %>, inverse_of: :<%= table_name %>
end

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

<% unless rails_4? %>
  attr_accessible :to_state, :metadata, :sort_key
<% end %>
  belongs_to :<%= parent_name %><%= class_name_option %>, inverse_of: :<%= table_name %>
end

Remove whitespace characters in generator
Remove whitespace characters in generator

Remove whitespace when generating ActiveRecord transition model in Rails 4
