Browse Source

Move method to private

Andrew Kane 8 năm trước cách đây
mục cha
commit
423a6326e0
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      lib/blazer/adapters/active_record_adapter.rb

+ 5 - 5
lib/blazer/adapters/active_record_adapter.rb

@@ -44,11 +44,6 @@ module Blazer
         result.rows.map(&:first)
       end
 
-      def schemas
-        default_schema = (postgresql? || redshift?) ? "public" : connection_model.connection_config[:database]
-        settings["schemas"] || [connection_model.connection_config[:schema] || default_schema]
-      end
-
       def reconnect
         connection_model.establish_connection(settings["url"])
       end
@@ -85,6 +80,11 @@ module Blazer
         connection_model.connection.adapter_name
       end
 
+      def schemas
+        default_schema = (postgresql? || redshift?) ? "public" : connection_model.connection_config[:database]
+        settings["schemas"] || [connection_model.connection_config[:schema] || default_schema]
+      end
+
       def set_timeout(timeout)
         if postgresql? || redshift?
           connection_model.connection.execute("SET statement_timeout = #{timeout.to_i * 1000}")