Sha256: 04ef0e29f5627ce1b70d183824c5a043858dba6b299f4c122973e50f1bd30db5
Contents?: true
Size: 586 Bytes
Versions: 7
Compression:
Stored size: 586 Bytes
Contents
module FlyAdmin class Footer < ActiveRecord::Base validates_uniqueness_of :paysite_id, scope: :country_id validates_presence_of :paysite_id, :country_id belongs_to :paysite belongs_to :country state_machine :source_type, initial: 'local' do event :bornpay do transition any => 'bornpay' end event :imbs do transition any => 'imbs' end # Если футер локальный, запросы к bornpay/imbs не делаем event :local do transition any => 'local' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems