Sha256: 9f0ab69784bed9eb6670154bd825e457dcc42f4b8f73cfa418d5902320a883f7

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

# encoding: utf-8

module Architect4r
  module Model

    module Callbacks
      extend ActiveSupport::Concern
      
      included do
        extend ActiveModel::Callbacks
        include ActiveModel::Validations::Callbacks
        
        define_model_callbacks :initialize, :only => :after
        define_model_callbacks :create, :destroy, :save, :update
      end
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
architect4r-0.4.3.1 lib/architect4r/model/callbacks.rb
architect4r-0.4.3 lib/architect4r/model/callbacks.rb
architect4r-0.4.2 lib/architect4r/model/callbacks.rb
architect4r-0.4.1 lib/architect4r/model/callbacks.rb
architect4r-0.4 lib/architect4r/model/callbacks.rb
architect4r-0.3.4.2 lib/architect4r/model/callbacks.rb
architect4r-0.3.4.1 lib/architect4r/model/callbacks.rb
architect4r-0.3.4 lib/architect4r/model/callbacks.rb
architect4r-0.3.3.1 lib/architect4r/model/callbacks.rb
architect4r-0.3.2 lib/architect4r/model/callbacks.rb