Module: Paperdragon::Model::Reader
- Defined in:
- lib/paperdragon/model.rb
Overview
class Album
extend Paperdragon::Model::Reader
processable_reader :image
Provides Album#image #=> Attachment.
Instance Method Summary collapse
Instance Method Details
#processable_reader(name, attachment_class = Attachment) ⇒ Object
56 57 58 59 60 |
# File 'lib/paperdragon/model.rb', line 56 def processable_reader(name, =Attachment) define_method name do .new(, model: self) end end |