Sha256: 1b20e6d3b7ed8be3dd0952f9bfa847ad254240285112a29645a0b363ee9982c1
Contents?: true
Size: 313 Bytes
Versions: 16
Compression:
Stored size: 313 Bytes
Contents
module ActiveModel # minimal ActiveModel definitions so we can support I18n methods class Name attr_reader :name, :klass, :i18n_key def initialize(klass) @name = klass.name @klass = klass @i18n_key = :"#{@name.underscore}" end def to_s @name end end end
Version data entries
16 entries across 16 versions & 1 rubygems