Sha256: 6b96f2771884607f6a00093c5f744ecfcb0a69f3bf2b3a973f95b3f4b6f658f9

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.9.2.1.125136549 app/helpers/rails_connector/editing_helper.rb
infopark_cloud_connector-6.9.1.3.22208381 app/helpers/rails_connector/editing_helper.rb
infopark_cloud_connector-6.9.0.3.197272233 app/helpers/rails_connector/editing_helper.rb