Sha256: 8a46964eef132e5bcc58fc697a79ad65801936bb2b7b3cc912d3dd1b9eda8069

Contents?: true

Size: 381 Bytes

Versions: 10

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module EacRailsUtils
  module Models
    module TablelessAssociations
      module AutosaveAssociation
        extend ActiveSupport::Concern

        include ActiveRecord::AutosaveAssociation

        included do
          extend ActiveModel::Callbacks
          define_model_callbacks :save, :create, :update
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eac_rails_utils-0.25.0 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.24.0 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.23.4 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.23.3 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.23.2 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.23.1 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.23.0 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.22.3 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.22.2 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.22.1 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb