Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/base_presenter.rb

Instance Method Summary collapse

Instance Method Details

#to_presenterObject


229
230
231
# File 'app/presenters/base_presenter.rb', line 229

def to_presenter
  Module.const_get(self.class.to_s+'Presenter').new(self)
end