Sha256: a87ae26fa7c11a0c6f94c53b829dacea4b6a25478969af6a87f455096f2943bf

Contents?: true

Size: 281 Bytes

Versions: 17

Compression:

Stored size: 281 Bytes

Contents

unless ActiveSupport::Callbacks::ClassMethods.method_defined?(:without_callback)

  module ActiveSupport::Callbacks::ClassMethods
    def without_callback(*args, &block)
      skip_callback(*args)
      yield.tap do |result|
        set_callback(*args)
      end
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
custom_fields-2.1.0.rc2 lib/custom_fields/extensions/active_support.rb
custom_fields-2.1.0.rc1 lib/custom_fields/extensions/active_support.rb
custom_fields-2.1.0.rc lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc13 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc12 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc11 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc10 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc9 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc8 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc7 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc6 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc5 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc4 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc3 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc2 lib/custom_fields/extensions/active_support.rb
custom_fields-2.0.0.rc1 lib/custom_fields/extensions/active_support.rb
custom_fields-1.1.0.rc1 lib/custom_fields/extensions/active_support.rb