module RailsConnector module EditingHelper def include_editing_stylesheet if inplace_editing_allowed? stylesheet_link_tag :infopark_editing end end def include_editing_javascript render 'rails_connector/editing_javascript' if inplace_editing_allowed? end def inplace_editing_allowed? Configuration.editing_auth_callback.call(request.env) end def current_page_has_edit_view? @obj && lookup_context.find(@obj.edit_view_path).present? rescue ActionView::MissingTemplate false end end end