lib/rocket_cms/controller.rb in rocket_cms-0.9.1 vs lib/rocket_cms/controller.rb in rocket_cms-0.9.2

- old
+ new

@@ -4,21 +4,26 @@ include RsErrors include RsPages include RsMenu protect_from_forgery with: :exception helper_method :page_title + helper_method :app_url end protected - + def page_title if @seo_page.nil? Settings.default_title else @seo_page.page_title end end def ckeditor_authenticate redirect_to '/' unless user_signed_in? && current_user.has_role?('admin') + end + + def app_url(object) + RocketCMS.app_url(object) end end