Sha256: 09417d758cf4ecc3048785a123fc9f6a3f602c69aec271cb33eb7079b11dda51
Contents?: true
Size: 304 Bytes
Versions: 19
Compression:
Stored size: 304 Bytes
Contents
class BasePresenter < SimpleDelegator attr_reader :item protected def initialize(item, *args) @item = item __setobj__(item) end def self.wrap(collection) collection.all.collect { |model| self.new(model) } end def helpers ApplicationController.helpers end end
Version data entries
19 entries across 19 versions & 1 rubygems