class BaseDecorator < Draper::Decorator
delegate_all
def self.currency(*keys)
keys.each do |key|
define_method(key) do
end
define_method("display_#{key}") do
end
end
end
end
Created
August 8, 2016 16:22
-
-
Save francirp/4fa8b6ae4d530749dc66b55845164afb to your computer and use it in GitHub Desktop.
Decorators Codeblock 14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment