Sha256: fbca8b0518293df08c9efab5c80d38d7ea714d5397e5bd0b27e21aecc3644e46
Contents?: true
Size: 573 Bytes
Versions: 3
Compression:
Stored size: 573 Bytes
Contents
class <%= class_name %>Presenter < DelegatedPresenter::Base # By default this presenter will 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
3 entries across 3 versions & 1 rubygems