Sha256: 14bb44670810beeb4ee0020769868b65fea8baae150d672d2d64841520c54050

Contents?: true

Size: 346 Bytes

Versions: 17

Compression:

Stored size: 346 Bytes

Contents

class GuardianWithoutFromSpecified
  include AASM

  aasm do
    state :alpha, :initial => true
    state :beta
    state :gamma

    event :use_guards_where_the_first_fails do
      transitions :to => :beta,  :guard => :fail
      transitions :to => :gamma, :guard => :succeed
    end
  end


  def fail; false; end
  def succeed; true; end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
aasm-5.3.1 spec/models/guardian_without_from_specified.rb
aasm-5.3.0 spec/models/guardian_without_from_specified.rb
aasm-5.2.0 spec/models/guardian_without_from_specified.rb
aasm-5.1.1 spec/models/guardian_without_from_specified.rb
aasm-5.1.0 spec/models/guardian_without_from_specified.rb
aasm-5.0.8 spec/models/guardian_without_from_specified.rb
aasm-5.0.7 spec/models/guardian_without_from_specified.rb
aasm-5.0.6 spec/models/guardian_without_from_specified.rb
aasm-5.0.5 spec/models/guardian_without_from_specified.rb
aasm-5.0.4 spec/models/guardian_without_from_specified.rb
aasm-5.0.3 spec/models/guardian_without_from_specified.rb
aasm-5.0.2 spec/models/guardian_without_from_specified.rb
aasm-5.0.1 spec/models/guardian_without_from_specified.rb
aasm-5.0.0 spec/models/guardian_without_from_specified.rb
aasm-4.12.3 spec/models/guardian_without_from_specified.rb
aasm-4.12.2 spec/models/guardian_without_from_specified.rb
aasm-4.12.1 spec/models/guardian_without_from_specified.rb