Sha256: 5b15575f2399de1be7155996505c356240474b83343cf96adbfefe0497667881
Contents?: true
Size: 900 Bytes
Versions: 6
Compression:
Stored size: 900 Bytes
Contents
module StateMachine module Integrations #:nodoc: module Sequel version '2.8.x - 3.13.x' do def self.active? !defined?(::Sequel::MAJOR) || ::Sequel::MAJOR == 2 || ::Sequel::MAJOR == 3 && ::Sequel::MINOR <= 13 end def handle_validation_failure 'raise_on_save_failure ? save_failure(:validation) : result' end def handle_save_failure 'save_failure(:save)' end end version '2.8.x - 2.11.x' do def self.active? !defined?(::Sequel::MAJOR) || ::Sequel::MAJOR == 2 && ::Sequel::MINOR <= 11 end def load_inflector end def action_hook action == :save ? :save : super end def model_from_dataset(dataset) dataset.model_classes[nil] end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems