Sha256: df81bd53ddd6ec1aea0096b0ab37c6ab1bbb0cdab2372c427fec853a06655f93

Contents?: true

Size: 597 Bytes

Versions: 19

Compression:

Stored size: 597 Bytes

Contents

module Kuhsaft
  module AdminHelper
    #
    # When rendering the layout of our host application,
    # the paths of the host application are not visible to the engine
    # therefore we delegate all failing helper calls to 'main_app',
    # which is our host application
    #
    def method_missing(method, *args, &block)
      main_app.send(method, *args, &block)
    rescue NoMethodError
      super
    end

    def sublime_video_include_tag
      token = Kuhsaft::Engine.config.sublime_video_token
      javascript_include_tag "//cdn.sublimevideo.net/js/#{token}-beta.js"
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.6.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.6.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.5.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.6.0 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.5.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.5.0 app/helpers/kuhsaft/admin_helper.rb
qbrick-2.5.0.pre app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.4.3 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.4.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.4.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.4.0 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.6 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.5 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.4 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.3 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.3.0 app/helpers/kuhsaft/admin_helper.rb