Sha256: 3f57866e53dda8c608551c17343ebde79ef5be067180d2a98cfe12fa8676240e

Contents?: true

Size: 492 Bytes

Versions: 12

Compression:

Stored size: 492 Bytes

Contents

require "paperclip/callbacks"
require "paperclip/validators"
require "paperclip/schema"

module Paperclip
  module Glue
    def self.included(base)
      base.extend ClassMethods
      base.send :include, Callbacks
      base.send :include, Validators
      base.send :include, Schema if defined? ActiveRecord::Base

      locale_path = Dir.glob(File.dirname(__FILE__) + "/locales/*.{rb,yml}")
      I18n.load_path += locale_path unless I18n.load_path.include?(locale_path)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kt-paperclip-7.2.0 lib/paperclip/glue.rb
kt-paperclip-6.4.2 lib/paperclip/glue.rb
kt-paperclip-7.1.1 lib/paperclip/glue.rb
kt-paperclip-7.1.0 lib/paperclip/glue.rb
kt-paperclip-7.0.1 lib/paperclip/glue.rb
kt-paperclip-7.0.0 lib/paperclip/glue.rb
kt-paperclip-6.4.1 lib/paperclip/glue.rb
kt-paperclip-6.4.0 lib/paperclip/glue.rb
kt-paperclip-6.3.0 lib/paperclip/glue.rb
kt-paperclip-6.2.2 lib/paperclip/glue.rb
kt-paperclip-6.2.1 lib/paperclip/glue.rb
kt-paperclip-6.2.0 lib/paperclip/glue.rb