module Rcms::ApplicationController::InstanceMethods
Public Instance Methods
render(*args)
click to toggle source
Calls superclass method
# File lib/rcms/application_controller.rb, line 36 def render *args run_callbacks :render do super end end
Protected Instance Methods
update_meta_title()
click to toggle source
# File lib/rcms/application_controller.rb, line 53 def update_meta_title set_meta_tags :title => "#{meta_tags[:title]} - #{params[:page]}" if params[:page] end
use_meta_page()
click to toggle source
# File lib/rcms/application_controller.rb, line 44 def use_meta_page if request.fullpath != '/' path = request.fullpath.scan(/(\/[^#\?]+)/)[0][0] @meta_page = Rcms::MetaPage.find_by(path: path) apply_meta_tags @meta_page if @meta_page end rescue end