Method: Cms::RenderingHelper#is_editing_page?
- Defined in:
- app/helpers/cms/rendering_helper.rb
#is_editing_page?(page) ⇒ Boolean
Determines if a user is currently editing this page
16 17 18 |
# File 'app/helpers/cms/rendering_helper.rb', line 16 def is_editing_page?(page) logged_in? && @mode == "edit" && current_user.able_to_edit?(page) end |