Sha256: b26ce3213b3a3cf06df76883013868c7a474a8a25e614d2b0a76161179a00d4e

Contents?: true

Size: 242 Bytes

Versions: 11

Compression:

Stored size: 242 Bytes

Contents

module ServiceController::ServiceInflections
  extend ActiveSupport::Concern

  included do
    helper_method :inflections
  end

  private

  def inflections
    {
      service_name: service_class.model_name.human(count: 1)
    }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.2.1 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.2.0 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.1.1 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.1.0 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.0.2 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.0.1 app/concerns/service_controller/service_inflections.rb
rails-add_ons-2.0.0 app/concerns/service_controller/service_inflections.rb
rails-add_ons-1.5.2 app/concerns/service_controller/service_inflections.rb
rails-add_ons-1.5.1 app/concerns/service_controller/service_inflections.rb
rails-add_ons-1.5.0 app/concerns/service_controller/service_inflections.rb