Sha256: 76870b98b57d6589ee40f9388b6aa1a16dbe446a9588f1044430caa17ccbd0aa

Contents?: true

Size: 473 Bytes

Versions: 4

Compression:

Stored size: 473 Bytes

Contents

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

    helper_method :current_user
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miniblog-1.0.2 app/controllers/miniblog/application_controller.rb
miniblog-1.0.1 app/controllers/miniblog/application_controller.rb
miniblog-1.0.0 app/controllers/miniblog/application_controller.rb
miniblog-1.0.0.beta app/controllers/miniblog/application_controller.rb