Class: Paperclip::HasAttachedFile
- Inherits:
-
Object
- Object
- Paperclip::HasAttachedFile
- Defined in:
- lib/paperclip/has_attached_file.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(klass, name, options) ⇒ HasAttachedFile
constructor
A new instance of HasAttachedFile.
Constructor Details
#initialize(klass, name, options) ⇒ HasAttachedFile
Returns a new instance of HasAttachedFile.
7 8 9 10 11 |
# File 'lib/paperclip/has_attached_file.rb', line 7 def initialize(klass, name, ) @klass = klass @name = name @options = end |
Class Method Details
.define_on(klass, name, options) ⇒ Object
3 4 5 |
# File 'lib/paperclip/has_attached_file.rb', line 3 def self.define_on(klass, name, ) new(klass, name, ).define end |
Instance Method Details
#define ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/paperclip/has_attached_file.rb', line 13 def define define_flush_errors define_getters define_setter define_query add_active_record_callbacks add_paperclip_callbacks add_required_validations end |