Sha256: 73696635e46329e8319e6539415492b4f169e82d9c70f152d43c74209f49b464
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
# Human and HumanDecorator is an example without ActiveModel or Draper class Human attr_accessor :status def self.model_name OpenStruct.new(i18n_key: "human") end end class HumanDecorator < SimpleDelegator include Olson humanizes :status alias_method :model, :__getobj__ def self.model_name Human.model_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
olson-0.0.3 | spec/fixtures/human.rb |