Module: UploadifyRails::Models::Parent::ClassMethods

Defined in:
lib/uploadify_rails/models/parent.rb

Instance Method Summary collapse

Instance Method Details

#uploadify_nested_parent(options = {}) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/uploadify_rails/models/parent.rb', line 12

def uploadify_nested_parent(options = {})
  class_attribute :uploadify_options
  self.uploadify_options = {
    # Only one relation in this version!
    :relations => (options[:relations] || [:photos]),
  }
  unless included_modules.include? InstanceMethods
    include InstanceMethods
  end
end