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 end end