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

Version Path
hyper-model-1.0.alpha1.8 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.7 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.6 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.5 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.4 lib/active_model_client_stubs.rb
hyper-model-0.99.6 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.3 lib/active_model_client_stubs.rb
hyper-model-0.99.5 lib/active_model_client_stubs.rb
hyper-model-0.99.4 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.2 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1.1 lib/active_model_client_stubs.rb
hyper-model-1.0.alpha1 lib/active_model_client_stubs.rb
hyper-model-0.99.3 lib/active_model_client_stubs.rb
hyper-model-0.99.2 lib/active_model_client_stubs.rb
hyper-model-0.99.1 lib/active_model_client_stubs.rb
hyper-model-0.99.0 lib/active_model_client_stubs.rb