module Shrine::Plugins::CachedAttachmentData::AttachmentMethods

  1. lib/shrine/plugins/cached_attachment_data.rb

Methods

Public Instance

  1. define_model_methods

Public Instance methods

define_model_methods(name)
[show source]
   # File lib/shrine/plugins/cached_attachment_data.rb
 8 def define_model_methods(name)
 9   super if defined?(super)
10 
11   define_method :"cached_#{name}_data" do
12     send(:"#{name}_attacher").cached_data
13   end
14 end