Module: ForumReaderSessionsController

Defined in:
lib/forum_reader_sessions_controller.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/forum_reader_sessions_controller.rb', line 3

def self.included(base)
  base.class_eval do
    def default_welcome_url_with_forum(reader=nil)
      if Radiant.config['reader.login_to'] == 'forum'
        topics_url
      else
        default_welcome_url_without_forum(reader)
      end
    end
    alias_method_chain :default_welcome_url, :forum
  end

end