Class: Tandem::Image
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Tandem::Image
- Defined in:
- app/models/tandem/image.rb
Constant Summary collapse
- THUMB_WIDTH =
150
- THUMB_HEIGHT =
150
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
23 24 25 |
# File 'app/models/tandem/image.rb', line 23 def as_json(={}) super(:methods => :thumb_url) end |
#thumb_url ⇒ Object
19 20 21 |
# File 'app/models/tandem/image.rb', line 19 def thumb_url resource.url(:thumb) end |