active-record-binder 1.0.0 → 1.0.1
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/lib/active_record_binder.rb +5 -5
- metadata +1 -1
data/lib/active_record_binder.rb
CHANGED
@@ -17,7 +17,7 @@ module Binder
|
|
17
17
|
#
|
18
18
|
# # Your methods
|
19
19
|
# end
|
20
|
-
#
|
20
|
+
# #
|
21
21
|
# # Or
|
22
22
|
# class ARMySqlPlug < Binder::AR
|
23
23
|
# database 'db'
|
@@ -34,15 +34,15 @@ module Binder
|
|
34
34
|
# foo.first
|
35
35
|
#
|
36
36
|
# # Furthermore, the Binder::AR class, has some interesting class methods :
|
37
|
-
#
|
37
|
+
# #
|
38
38
|
# Binder::AR::default_database # => ENV['APP_DB'] # This value would be used if no database had been set during the plus creation.
|
39
39
|
# Binder::AR::database # => Returns the current database used by the Binder in general (Would default to ENV['APP_DB'] if not specified)
|
40
40
|
# ARSqlitePlug::database # => :db (Works the same and returns this Plug Class's database parameters)
|
41
|
-
#
|
41
|
+
# #
|
42
42
|
# # The same goes for the adapters :
|
43
43
|
# Binder::AR::default_adapter # => :sqlite3
|
44
44
|
# ARMySqlPlug::adapter # => :mysql
|
45
|
-
#
|
45
|
+
# #
|
46
46
|
# # And connection parameters
|
47
47
|
# Binder::AR::connection # => {}
|
48
48
|
# ARMySqlPlug::connection # => { :user => 'Foo', :password => 'Bar', :host => 'localhost' }
|
@@ -163,7 +163,7 @@ module Binder
|
|
163
163
|
|
164
164
|
# Public: Retrieves de default database
|
165
165
|
#
|
166
|
-
# Returns a the content of ENV['APP_DB'].
|
166
|
+
# Returns a the content of ENV\['APP_DB'\].
|
167
167
|
def default_database; ENV['APP_DB'] end
|
168
168
|
|
169
169
|
# Public: Retrieves de default database
|