Skip to content

Commit

Permalink
Add require pathname to environment.rb - fixes diaspora#3816
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywink committed May 4, 2013
1 parent e70c259 commit 953df7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ everything is set up.
* Remove unnecessary navigation bar to access mobile site and re-add flash warning to mobile registrations. [#4085](https://github.com/diaspora/diaspora/pull/4085)
* Fix broken reactions link on mobile page [#4125](https://github.com/diaspora/diaspora/pull/4125)
* Missing translation "Back to top". [#4138](https://github.com/diaspora/diaspora/pull/4138)
* Fix pathname issue on Mac & Pow. [#3816](https://github.com/diaspora/diaspora/issues/3816)

## Features

Expand Down
2 changes: 2 additions & 0 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.

require 'pathname'

# check what database you have
def postgres?
@using_postgres ||= defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) && ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
Expand Down

0 comments on commit 953df7f

Please sign in to comment.