Sha256: 552fc5b223ef563e0de11df716b5dfd08823fe2274fd9e01ce92c7c235b22be8

Contents?: true

Size: 297 Bytes

Versions: 10

Compression:

Stored size: 297 Bytes

Contents

module InfinumId
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception
    respond_to :html

    delegate :resource_name, :resource_class, to: InfinumId

    def current_resource
      method("current_#{resource_name.underscore}").call
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
infinum_id-2.2.0 app/controllers/infinum_id/application_controller.rb
infinum_id-2.1.0 app/controllers/infinum_id/application_controller.rb
infinum_id-2.0.1 app/controllers/infinum_id/application_controller.rb
infinum_id-2.0.0 app/controllers/infinum_id/application_controller.rb
infinum_id-1.6.0 app/controllers/infinum_id/application_controller.rb
infinum_id-1.5.1 app/controllers/infinum_id/application_controller.rb
infinum_id-1.5.0 app/controllers/infinum_id/application_controller.rb
infinum_id-1.4.2 app/controllers/infinum_id/application_controller.rb
infinum_id-1.4.1 app/controllers/infinum_id/application_controller.rb
infinum_id-1.4.0 app/controllers/infinum_id/application_controller.rb