databasedotcom-rails 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -1
- data/lib/databasedotcom/rails/controller.rb +1 -0
- data/lib/databasedotcom/rails/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -20,7 +20,16 @@ or, if you use Bundler
|
|
20
20
|
username: put-your-username-here
|
21
21
|
password: put-your-password-here
|
22
22
|
debugging: true
|
23
|
-
|
23
|
+
|
24
|
+
Alternatively, include environment-specific settings:
|
25
|
+
development:
|
26
|
+
client_id: ...
|
27
|
+
test:
|
28
|
+
client_id: ...
|
29
|
+
production:
|
30
|
+
client_id: ...
|
31
|
+
|
32
|
+
|
24
33
|
* Call `YourModel.coerce_params` before you pass parameters submitted from an HTML form to your materialized Sobject
|
25
34
|
|
26
35
|
# Example
|
@@ -5,6 +5,7 @@ module Databasedotcom
|
|
5
5
|
def dbdc_client
|
6
6
|
unless @dbdc_client
|
7
7
|
config = YAML.load_file(File.join(::Rails.root, 'config', 'databasedotcom.yml'))
|
8
|
+
config = config.has_key?(::Rails.env) ? config[::Rails.env] : config
|
8
9
|
username = config["username"]
|
9
10
|
password = config["password"]
|
10
11
|
@dbdc_client = Databasedotcom::Client.new(config)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: databasedotcom-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Danny Burkes
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-01-24 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: databasedotcom
|