aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-15 14:21:01 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-15 14:23:17 -0700
commit265dcb779dd4bfd9745e0131f585749d7034c3c7 (patch)
treeb522ffcf5a29bf0a260d811a0d1cbcb84f2262bb /activerecord/lib/active_record/type
parent8c837e5fcc2a3ac639b3b93b0024bd2c20d3b6ed (diff)
downloadrails-265dcb779dd4bfd9745e0131f585749d7034c3c7.tar.gz
rails-265dcb779dd4bfd9745e0131f585749d7034c3c7.tar.bz2
rails-265dcb779dd4bfd9745e0131f585749d7034c3c7.zip
Register adapter specific types with the global type registry
We do this in the adapter classes specifically, so the types aren't registered if we don't use that adapter. Constants under the PostgreSQL namespace for example are never loaded if we're using mysql.
Diffstat (limited to 'activerecord/lib/active_record/type')
-rw-r--r--activerecord/lib/active_record/type/adapter_specific_registry.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/adapter_specific_registry.rb b/activerecord/lib/active_record/type/adapter_specific_registry.rb
index ce9ff6a557..5f71b3cb94 100644
--- a/activerecord/lib/active_record/type/adapter_specific_registry.rb
+++ b/activerecord/lib/active_record/type/adapter_specific_registry.rb
@@ -1,6 +1,7 @@
module ActiveRecord
+ # :stopdoc:
module Type
- class AdapterSpecificRegistry # :nodoc:
+ class AdapterSpecificRegistry
def initialize
@registrations = []
end
@@ -136,4 +137,6 @@ module ActiveRecord
class TypeConflictError < StandardError
end
+
+ # :startdoc:
end