module ModelPresenter::ForwardFromModel
Public Instance Methods
forward_from_model(*attributes)
click to toggle source
# File lib/model_presenter/forward_from_model.rb, line 3 def forward_from_model(*attributes) attributes.each do |attr| self.send :define_method, attr do model.send(attr) end end end