Permalink
Browse files

dont need a separate method for generating schema string

  • Loading branch information...
1 parent e0a0902 commit ccd3cbc53cbc4f187774d7df379cc3df0fae2448 @bradrobertson bradrobertson committed Jun 9, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/apartment/adapters/postgresql_adapter.rb
View
8 lib/apartment/adapters/postgresql_adapter.rb
@@ -109,15 +109,9 @@ def create_database(database)
# Generate the final search path to set including persistent_schemas
#
def full_search_path
- persistent_schemas = persistent_schema_string
+ persistent_schemas = Apartment.persistent_schemas.join(', ')
@current_database.to_s + (persistent_schemas.empty? ? "" : ", #{persistent_schemas}")
end
-
- # Cached persistent schemas joined in a valid search path format (comma separated)
- #
- def persistent_schema_string
- Apartment.persistent_schemas.join(', ')
- end
end
end
end

0 comments on commit ccd3cbc

Please sign in to comment.