Sha256: 5daf9390bf4fa780de818b060e7a601d8794efff6805db5e557d075ea37ffb54

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

module Crowdblog
  class ApplicationController < ::ApplicationController
    def method_missing(method_name)
      if method_name == :current_user
        Rails.logger.warn("current_user in Crowdblog::ApplicationController should be overriden")
        ::User.new
      elsif method_name == :authenticate_user!
        Rails.logger.warn("authenticate_user! in Crowdblog::ApplicationController should be overriden")
      end
    end

    helper_method :current_user
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crowdblog-0.6.2 app/controllers/crowdblog/application_controller.rb
crowdblog-0.6.0 app/controllers/crowdblog/application_controller.rb
crowdblog-0.5.0 app/controllers/crowdblog/application_controller.rb
crowdblog-0.4.0 app/controllers/crowdblog/application_controller.rb