Module: Shrine::Plugins::CachedAttachmentData::AttachmentMethods
- Defined in:
- lib/shrine/plugins/cached_attachment_data.rb
Instance Method Summary collapse
Instance Method Details
#define_model_methods(name) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/shrine/plugins/cached_attachment_data.rb', line 8 def define_model_methods(name) super if defined?(super) define_method :"cached_#{name}_data" do send(:"#{name}_attacher").cached_data end end |