Sha256: e7a303e4036a1647bd1a58fcb5677e410743dd4e31446c4fab0121ad3baac36e

Contents?: true

Size: 360 Bytes

Versions: 50

Compression:

Stored size: 360 Bytes

Contents

module Rao
  module ResourcesController::ResourceInflectionsConcern
    extend ActiveSupport::Concern

    included do
      helper_method :inflections
    end

    private

    def inflections
      {
        resource_name: resource_class.model_name.human(count: 1),
        collection_name: resource_class.model_name.human(count: 2)
      }
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
rao-resources_controller-0.0.52.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.51.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.50.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.49.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.48.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.47.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.46.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.45.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.44.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.43.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.42.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.41.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.40.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.39.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.38.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.37.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.36.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.35.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.34.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb
rao-resources_controller-0.0.33.pre app/concerns/rao/resources_controller/resource_inflections_concern.rb