Sha256: a0dd488b4a1a6532cbc80199f596d6adad1d8e7680e50e17f0f6ee00f8fde7df

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module RecordCollection
  class Name < ActiveModel::Name
    def param_key
      'collection'
    end

    def singular_route_key
      @klass.record_class.model_name.singular_route_key
    end

    def route_key
      @klass.record_class.model_name.route_key
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
record_collection-0.4.2 lib/record_collection/name.rb