Sha256: 70d091ab847daa2eb06d34ccffe414d7dae34209135e057cd634b2b0a12035d1
Contents?: true
Size: 796 Bytes
Versions: 3
Compression:
Stored size: 796 Bytes
Contents
require 'paperclip/callbacks' require 'paperclip/validators' require 'paperclip/schema' module Paperclip module Glue def self.included base #:nodoc: base.extend ClassMethods base.send :include, Callbacks base.send :include, Validators base.class_attribute :attachment_definitions if defined?(ActiveRecord) ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include, Paperclip::Schema) ActiveRecord::ConnectionAdapters::Table.send(:include, Paperclip::Schema) ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, Paperclip::Schema) end 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
paperclip-3.0.4 | lib/paperclip/glue.rb |
paperclip-3.0.3 | lib/paperclip/glue.rb |
cloudfuji_paperclip-3.0.3 | lib/paperclip/glue.rb |