Sha256: 71d7394964fd564aeaf5e58e47e334b042aa5969dc821855ebc840ecf7ac25d0

Contents?: true

Size: 187 Bytes

Versions: 18

Compression:

Stored size: 187 Bytes

Contents

module CensorBear
  class ApplicationController < ActionController::Base
    include Pagy::Backend

    def current_user
      main_app.scope.request.env['warden'].user
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
censor_bear-0.1.18 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.17 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.15 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.14 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.13 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.12 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.11 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.10 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.9 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.8 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.7 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.6 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.5 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.4 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.3 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.2 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.1 app/controllers/censor_bear/application_controller.rb
censor_bear-0.1.0 app/controllers/censor_bear/application_controller.rb