forked from saurabh/personal-journal
10 lines
397 B
Ruby
10 lines
397 B
Ruby
module Admin::JournalPapersHelper
|
|
def page_for_journal_paper(journal_paper)
|
|
journal_paper_page = nil
|
|
pages = Page.where(:module=>"member")
|
|
|
|
journal_paper_page = pages.first if journal_paper_page.nil?
|
|
request.protocol+(request.host_with_port+journal_paper_page.url+'/'+journal_paper.to_param+"?method=personal_plugin&plugin_name=JournalPaper").gsub('//','/') rescue "/"
|
|
end
|
|
end
|