Sha256: 21d2f55dda8939c2e602a43d2a35e33709ce0d9f8936569a7f45742b843c5d7f
Contents?: true
Size: 429 Bytes
Versions: 27
Compression:
Stored size: 429 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 def human I18n.t("#{@klass.record_class.i18n_scope}.collections.#{@klass.record_class.model_name.i18n_key}", default: 'Collection') end end end
Version data entries
27 entries across 27 versions & 1 rubygems