Class: Digineo::ImageGallery
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Digineo::ImageGallery
- Defined in:
- lib/digineo/image_gallery.rb
Instance Method Summary collapse
Instance Method Details
#create_image_by_url(url, image_type = nil) ⇒ Object
13 14 15 |
# File 'lib/digineo/image_gallery.rb', line 13 def create_image_by_url(url, image_type = nil) images.create!(:file_url => url, :parentmodel => parentmodel, :image_type => image_type) end |