Sha256: 57a8a9f0aeac417ad95e2199726291cbf50775eccef63e33921b34ec191892bf

Contents?: true

Size: 373 Bytes

Versions: 11

Compression:

Stored size: 373 Bytes

Contents

module ReaderSessionsControllerExtensions
  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
  
end



Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-reader_group-extension-1.2.4 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.2.3 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.2.2 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.2.1 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.2.0 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.1.2 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.1.1 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.1.0 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.0.1 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-1.0.0 lib/reader_sessions_controller_extensions.rb
radiant-reader_group-extension-0.9.0 lib/reader_sessions_controller_extensions.rb