Module: ReaderSessionsControllerExtensions

Defined in:
lib/reader_sessions_controller_extensions.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)

  base.class_eval { 
    
    def default_loggedin_url_with_group
      if page = @reader_session.reader.find_homepage
        page.url
      else
        default_loggedin_url_without_group
      end
    end
    alias_method_chain :default_loggedin_url, :group

  }
end