10 lines
292 B
Ruby
10 lines
292 B
Ruby
|
module Admin::MemberlogsHelper
|
||
|
def page_for_memberlog(memberlog_object)
|
||
|
page = nil
|
||
|
pages = Page.where(:module=>"memberlog")
|
||
|
|
||
|
page = pages.first if page.nil?
|
||
|
request.protocol+(request.host_with_port+page.url+'/'+memberlog_object.to_param).gsub('//','/') rescue "/"
|
||
|
end
|
||
|
|
||
|
end
|