Sha256: a364323850fae93b662c083073480718eaa65c9b8787b3b4afd10326ff07ac54

Contents?: true

Size: 378 Bytes

Versions: 8

Compression:

Stored size: 378 Bytes

Contents

module ForumReaderSessionsController

  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

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
radiant-forum-extension-3.0.7 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.6 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.5 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.4 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.3 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.2 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.1 lib/forum_reader_sessions_controller.rb
radiant-forum-extension-3.0.0 lib/forum_reader_sessions_controller.rb