Sha256: 530262795a3a222ceed8801abab48098ae402d26fb0396f92c612a401a8fb8eb

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

require 'ripple/callbacks'

module Ripple
  module EmbeddedDocument
    module AroundCallbacks
      extend ActiveSupport::Concern
      extend Translation

      included do
        Ripple::Callbacks::CALLBACK_TYPES.each do |type|
          define_singleton_method "around_#{type}" do |*args|
            raise NotImplementedError.new(t("around_callbacks_not_supported", :type => type))
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
wyngle-ripple-0.1.0 lib/ripple/embedded_document/around_callbacks.rb
better-ripple-1.0.0 lib/ripple/embedded_document/around_callbacks.rb
ripple-1.0.0.beta2 lib/ripple/embedded_document/around_callbacks.rb
seomoz-ripple-1.0.0.pre lib/ripple/embedded_document/around_callbacks.rb
ripple-1.0.0.beta lib/ripple/embedded_document/around_callbacks.rb