Sha256: e106f73a7f216f455526d9d51168d72373b0f1b53f6677c4b63ef68cc4dad300

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 & 4 rubygems

Version Path
kt-paperclip-5.4.0 lib/paperclip/glue.rb
paperclip-6.1.0 lib/paperclip/glue.rb
paperclip-6.0.0 lib/paperclip/glue.rb
paperclip-5.3.0 lib/paperclip/glue.rb
paperclip-5.2.1 lib/paperclip/glue.rb
paperclip-5.2.0 lib/paperclip/glue.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paperclip-5.1.0/lib/paperclip/glue.rb
paperclip-5.1.0 lib/paperclip/glue.rb
paperclip-5.0.0 lib/paperclip/glue.rb
paperclip_jk-5.0.0.beta2 lib/paperclip/glue.rb
paperclip-5.0.0.beta2 lib/paperclip/glue.rb
paperclip-5.0.0.beta1 lib/paperclip/glue.rb