Sha256: 79a7f7d85774996e162356d904497f95b6ae63b881053949423546b11b223741

Contents?: true

Size: 469 Bytes

Versions: 3

Compression:

Stored size: 469 Bytes

Contents

module Bouquet
  module Store
    module ApplicationHelper
      def switch_stylesheet_link_tag(path)
        path = "http://localhost:4000/assets/stylesheets/#{path}.css" if ENV["NODE_ENV"] == 'development'
        stylesheet_link_tag(path)
      end

      def switch_javascript_include_tag(path)
        path = "http://localhost:4000/assets/javascripts/#{path}.js" if ENV["NODE_ENV"] == 'development'
        javascript_include_tag(path)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bouquet-0.2.2 store/app/helpers/bouquet/store/application_helper.rb
bouquet-0.2.1 store/app/helpers/bouquet/store/application_helper.rb
bouquet-0.2.0 store/app/helpers/bouquet/store/application_helper.rb