Sha256: f873e9421bfd72b2592f7a7afd33da2dde423bc701c26ab375e07da62e911ca5

Contents?: true

Size: 284 Bytes

Versions: 39

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

module LinkedRails
  class CurrentUserController < LinkedRails.controller_parent_class
    active_response :show

    private

    def current_resource
      @current_resource ||= LinkedRails.current_user_class.new(user: current_user)
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
linked_rails-0.0.4.pre.g3aeec2263 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.gacd5f04d4 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.gb0b6aea40 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g792a1b887 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g58af47992 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g0ec6e30ca app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g9e3bcac55 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g222bfeeca app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.gb254a2893 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g2c6c26e86 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.ge881247c3 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.gfabf7e9f5 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g8c045be3a app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g8d7195543 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.gfe77aae19 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.gc866c1806 app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g3e8f5731a app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g58e27be7f app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g96885856b app/controllers/linked_rails/current_user_controller.rb
linked_rails-0.0.4.pre.g1faca9643 app/controllers/linked_rails/current_user_controller.rb