Class: Papercat::Image
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Papercat::Image
- Defined in:
- app/models/papercat/image.rb
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
7 8 9 |
# File 'app/models/papercat/image.rb', line 7 def as_json = {} super(.merge(methods: [:location])) end |
#location ⇒ Object
4 5 6 |
# File 'app/models/papercat/image.rb', line 4 def location file.url end |