Public Instance methods
define_model_methods(name)
[show source]
# File lib/shrine/plugins/data_uri.rb 40 def define_model_methods(name) 41 super if defined?(super) 42 43 define_method :"#{name}_data_uri=" do |uri| 44 send(:"#{name}_attacher").data_uri = uri 45 end 46 47 define_method :"#{name}_data_uri" do 48 send(:"#{name}_attacher").data_uri 49 end 50 end