Sha256: ca15f8e5df3eedb830175c963d913b59c04e81722268e6159fcac1fb71360f1e
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
class <%= class_name %>Presenter < DelegatedPresenter::Base # By default this presenter wil try and present a `<%= class_name %>` if it exists. # You can explicitly tell the presenter to present other models using the following syntax: # presents MyModel1, MyModel2 # Add some functionality to your presenter! # The presenter will always look to the model it is presenting for methods and attributes not defined in the presenter. # If you want to override model method, you can always call `presented_model.{method_name}` to access the original method. end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
delegated_presenter-0.1.1 | lib/generators/templates/presenter.rb.erb |
delegated_presenter-0.1.0 | lib/generators/templates/presenter.rb.erb |