Sha256: a8e332f584af94f468d06e956d7c082ff382b5e9229ed9e1892e3dd7fdb55822

Contents?: true

Size: 604 Bytes

Versions: 23

Compression:

Stored size: 604 Bytes

Contents

module Kuhsaft
  module ApplicationHelper

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

23 entries across 23 versions & 1 rubygems

Version Path
kuhsaft-1.3.1 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.15 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.14 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.13 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.12 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.11 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.10 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.9 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.8 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.7 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.6 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.5 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.4 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.3 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.2 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.1 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.2.0 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.1.1 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.1.0 app/helpers/kuhsaft/application_helper.rb
kuhsaft-1.0.3 app/helpers/kuhsaft/application_helper.rb