<img src=“https://travis-ci.org/aosmith/simple-presenters.png?branch=master” />
Include SimplePresenters::Presenter in your presenter:
module UserPresenter include SimplePresenters::Presenter def default [:name, :email] end end
Include your presenter in your model:
class User < ActiveRecord::Base include UserPresenter ... end
Add a class method on your model called filtered_parameters:
class User < ActiveRecord::Base include UserPresenter def self.filtered_parameters [:authentication_token, :password_digest, :salt] end end
Added / Fixed functionality around arrays.