Skip to content

Commit

Permalink
SQLite: find database file when RAILS_ROOT is a symlink. References #…
Browse files Browse the repository at this point in the history
…3116.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Dec 8, 2005
1 parent d496db1 commit df901ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions activerecord/CHANGELOG
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVN* *SVN*


* SQLite: find database file when RAILS_ROOT is a symlink. #3116 [anna@wota.jp]

* Reloading an instance refreshes its aggregations as well as its associations. #3024 [François Beausolei] * Reloading an instance refreshes its aggregations as well as its associations. #3024 [François Beausolei]


* Fixed that using :include together with :conditions array in Base.find would cause NoMethodError #2887 [Paul Hammmond] * Fixed that using :include together with :conditions array in Base.find would cause NoMethodError #2887 [Paul Hammmond]
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def parse_config!(config)
# the database path is not the special path that tells # the database path is not the special path that tells
# Sqlite build a database only in memory. # Sqlite build a database only in memory.
if Object.const_defined?(:RAILS_ROOT) && ':memory:' != config[:database] if Object.const_defined?(:RAILS_ROOT) && ':memory:' != config[:database]
config[:database] = File.expand_path(config[:database], RAILS_ROOT) config[:database] = File.join(RAILS_ROOT, config[:database])
end end
end end
end end
Expand Down

0 comments on commit df901ce

Please sign in to comment.