aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb b/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb
index 0610b7dbc1..b73915cf5c 100644
--- a/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb
@@ -8,14 +8,12 @@ FB_TRACE = false
module ActiveRecord
class Base
-
class << self
- # FrontBase only supports one unnamed sequence per table
- def set_sequence_name( value=nil, &block )
- end
-
# Establishes a connection to the database that's used by all Active Record objects.
def frontbase_connection(config) # :nodoc:
+ # FrontBase only supports one unnamed sequence per table
+ define_attr_method(:set_sequence_name, :sequence_name, &Proc.new {|*args| nil})
+
config = config.symbolize_keys
database = config[:database]
port = config[:port]