Module: FilepickerioRails

Defined in:
lib/filepickerio_rails/railtie.rb,
lib/filepickerio_rails/version.rb,
lib/filepickerio_rails/configuration.rb,
lib/filepickerio_rails/action_view/form_builder.rb,
lib/filepickerio_rails/action_view/form_tag_helper.rb

Defined Under Namespace

Modules: ActionView Classes: Configuration, Railtie

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.configObject

Global settings for FilepickerioRails



13
14
15
# File 'lib/filepickerio_rails/configuration.rb', line 13

def self.config
  @config
end

.configure {|@config ||= FilepickerioRails::Configuration.new| ... } ⇒ Object

Configures global settings for FilepickerioRails

FilepickerioRails.configure do |config|
  config.api_key = 'YOURKEY'
end


8
9
10
# File 'lib/filepickerio_rails/configuration.rb', line 8

def self.configure(&block)
  yield @config ||= FilepickerioRails::Configuration.new
end