mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Only modify the sequence name in the FrontBase adapter if the FrontBase adapter is actually being used. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
7a8ed3bbbf
commit
2ec1527c47
2 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
||||||
*SVN*
|
*SVN*
|
||||||
|
|
||||||
|
* Only modify the sequence name in the FrontBase adapter if the FrontBase adapter is actually being used. [Marcel Molina Jr.]
|
||||||
|
|
||||||
* Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
|
* Add support for FrontBase (http://www.frontbase.com/) with a new adapter thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com]
|
||||||
|
|
||||||
* Add warning about the proper way to validate the presence of a foreign key. Closes #4147. [Francois Beausoleil <francois.beausoleil@gmail.com>]
|
* Add warning about the proper way to validate the presence of a foreign key. Closes #4147. [Francois Beausoleil <francois.beausoleil@gmail.com>]
|
||||||
|
|
|
@ -8,14 +8,12 @@ FB_TRACE = false
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
|
|
||||||
class Base
|
class Base
|
||||||
|
|
||||||
class << self
|
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.
|
# Establishes a connection to the database that's used by all Active Record objects.
|
||||||
def frontbase_connection(config) # :nodoc:
|
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
|
config = config.symbolize_keys
|
||||||
database = config[:database]
|
database = config[:database]
|
||||||
port = config[:port]
|
port = config[:port]
|
||||||
|
|
Loading…
Reference in a new issue