Class: Tandem::Image

Inherits:
ActiveRecord::Base
  • Object
show all
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(options={})
  super(:methods => :thumb_url)
end

#thumb_urlObject



19
20
21
# File 'app/models/tandem/image.rb', line 19

def thumb_url
  resource.url(:thumb)
end