Sha256: 6a10157f55f9484dd1abf8cd7941898800afa5858006f45ec091d75f61d43c97
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
require 'paperclip/callbacks' 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paperclip-3.0.2 | lib/paperclip/glue.rb |