Class: Ckeditor::Picture
- Inherits:
-
Asset
- Object
- ActiveRecord::Base
- Asset
- Ckeditor::Picture
show all
- Defined in:
- lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb,
lib/generators/ckeditor/migration/templates/models/attachment_fu/picture.rb
Instance Method Summary
collapse
Methods inherited from Asset
#content_type, #filename, #format_created_at, #geometry, #has_dimensions?, #image?, #path, #public_filename, #size, #styles, #to_xml, #url
Instance Method Details
#to_json(options = {}) ⇒ Object
17
18
19
20
21
22
|
# File 'lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb', line 17
def to_json(options = {})
options[:methods] ||= []
options[:methods] << :url_content
options[:methods] << :url_thumb
super options
end
|
#url_content ⇒ Object
9
10
11
|
# File 'lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb', line 9
def url_content
url(:content)
end
|
#url_thumb ⇒ Object
13
14
15
|
# File 'lib/generators/ckeditor/migration/templates/models/paperclip/picture.rb', line 13
def url_thumb
url(:thumb)
end
|