Sha256: 6ee9ee0229856351eb90df01f5658b104ed28573c644b5d98a5ccf9154dbdd77

Contents?: true

Size: 389 Bytes

Versions: 10

Compression:

Stored size: 389 Bytes

Contents

class User < ActiveRecord::Base
  acts_as_approvable :on => :create, :state_field => :state

  def to_str
    login || "user-#{id}"
  end
end

class Project < ActiveRecord::Base
  acts_as_approvable :on => :update, :ignore => :title
end

class Game < ActiveRecord::Base
  acts_as_approvable :on => :update, :only => :title
end

class Employee < ActiveRecord::Base
  acts_as_approvable
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
acts-as-approvable-0.6.7 test/support.rb
acts-as-approvable-0.6.6 test/support.rb
acts-as-approvable-0.6.5 test/support.rb
acts-as-approvable-0.6.4 test/support.rb
acts-as-approvable-0.6.3.3 test/support.rb
acts-as-approvable-0.6.3.2 test/support.rb
acts-as-approvable-0.6.3.1 test/support.rb
acts-as-approvable-0.6.3 test/support.rb
acts-as-approvable-0.6.2 test/support.rb
acts-as-approvable-0.6.1 test/support.rb