Use the method to create global connection to vzaar.
Usage:
Vzaar.connect! :login => ‘Your vzaar login’, :application_token => ‘Your vzaar application token’, :server => ‘The vzaar server (vzaar.com by default)’
# File lib/vzaar.rb, line 48
48: def connect!(options = {})
49: @connection = Base.new options
50: end
Enables Rails specifc views and controllers used by vzaar uploader.
# File lib/vzaar.rb, line 53
53: def enable_uploader
54: return if ActionView::Base.instance_methods.include? 'vzaar_basic_uploader'
55: require 'rails/views/view_helpers'
56: ActionView::Base.send :include, Vzaar::ViewHelpers
57: controllers_path = "#{File.dirname(__FILE__)}/rails/controllers"
58: ActiveSupport::Dependencies.load_paths << controllers_path
59: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.