Module: Paperclip::Glue

Defined in:
lib/paperclip/glue.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



5
6
7
8
9
10
11
12
13
# File 'lib/paperclip/glue.rb', line 5

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