Sha256: 2399d7d97d056bb0dbfb309754385f170f97326764c457e54ac6868fffa43c38

Contents?: true

Size: 684 Bytes

Versions: 21

Compression:

Stored size: 684 Bytes

Contents

module AASM
  class Configuration
    # for all persistence layers: which database column to use?
    attr_accessor :column

    # let's cry if the transition is invalid
    attr_accessor :whiny_transitions

    # for all persistence layers: create named scopes for each state
    attr_accessor :create_scopes

    # for ActiveRecord: don't store any new state if the model is invalid
    attr_accessor :skip_validation_on_save

    # for ActiveRecord: use requires_new for nested transactions?
    attr_accessor :requires_new_transaction

    # forbid direct assignment in aasm_state column (in ActiveRecord)
    attr_accessor :no_direct_assignment

    attr_accessor :enum
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
aasm-4.8.0 lib/aasm/configuration.rb
aasm-4.7.0 lib/aasm/configuration.rb
aasm-4.6.0 lib/aasm/configuration.rb
aasm-4.5.2 lib/aasm/configuration.rb
aasm-4.5.1 lib/aasm/configuration.rb
aasm-4.5.0 lib/aasm/configuration.rb
aasm-4.4.1 lib/aasm/configuration.rb
aasm-4.4.0 lib/aasm/configuration.rb
aasm-4.3.0 lib/aasm/configuration.rb
aasm-4.2.0 lib/aasm/configuration.rb
aasm-4.1.1 lib/aasm/configuration.rb
aasm-4.1.0 lib/aasm/configuration.rb
aasm-4.0.8 lib/aasm/configuration.rb
aasm-4.0.7 lib/aasm/configuration.rb
aasm-4.0.6 lib/aasm/configuration.rb
aasm-4.0.5 lib/aasm/configuration.rb
aasm-4.0.4 lib/aasm/configuration.rb
aasm-4.0.3 lib/aasm/configuration.rb
aasm-4.0.2 lib/aasm/configuration.rb
aasm-4.0.1 lib/aasm/configuration.rb