Sha256: 5945e7dbcff4041a82fb8686ad2a88afc86eaad3aa1391bfc190859a3a9699f4

Contents?: true

Size: 598 Bytes

Versions: 27

Compression:

Stored size: 598 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

27 entries across 27 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.2.5 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.2.4 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.2.3 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.2.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.2.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.2.0 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.1.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.1.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.1.0 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-1.8.6 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-1.8.5 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.0.3 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.0.2 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-1.8.4 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-1.8.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.0.1 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-2.0.0 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-1.8.0 app/helpers/kuhsaft/admin_helper.rb
kuhsaft-1.7.1 app/helpers/kuhsaft/admin_helper.rb