Sha256: a6f43dc6600a8160fb411708da6094d66b9d8e9b785a3dc7a5999d1c07c257d1

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

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

    include ActiveRecord::AutosaveAssociation

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eac_rails_utils-0.22.0 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb
eac_rails_utils-0.21.0 lib/eac_rails_utils/models/tableless_associations/autosave_association.rb