Module: CroppedPaperclip::Glue
- Defined in:
- lib/cropped_paperclip/glue.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cropped_paperclip/glue.rb', line 5 def self.included base #:nodoc: # Extend ActiveRecord::Base with CroppedPaperclip::ClassMethods, as defined in cropped_paperclip.rb. # base.extend ClassMethods # Load migration helpers into all the right places. # if defined?(ActiveRecord) ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include, CroppedPaperclip::Schema) ActiveRecord::ConnectionAdapters::Table.send(:include, CroppedPaperclip::Schema) ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, CroppedPaperclip::Schema) end end |