Sha256: 7fe54dd333e51f528ce30a1fc0df384723756189cf86da5b8dbbaa849ffc22bb

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

module SublimeVideoRails
  module ViewHelpers
  	require 'yaml'
    def sublimevideo_rails(*options)
      @options = options.extract_options!
      @site_token = load_config("sublime.yml")["SITE"]["TOKEN"]
      render "sublimevideo_rails/sublimevideo_rails"
    end

    def load_config(filename)
    	YAML::load(ERB.new(IO.read("config/#{filename}")).result)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sublimevideo_rails-0.0.11 lib/sublimevideo_rails/view_helpers.rb