We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb135fa commit 34be27fCopy full SHA for 34be27f
.travis.yml
@@ -1,6 +1,5 @@
1
language: ruby
2
rvm:
3
- - 1.9.3
4
- 2.0.0
5
before_script:
6
- cp config/database.yml.development-sample config/database.yml
lib/site_settings/db_provider.rb
@@ -58,7 +58,7 @@ def current_site
58
59
# table is not in the db yet, initial migration, etc
60
def table_exists?
61
- @table_exists = ActiveRecord::Base.connection.table_exists? @model.table_name if @table_exists == nil
+ @table_exists = ActiveRecord::Base.connection.table_exists? @model.table_name unless @table_exists
62
@table_exists
63
end
64
0 commit comments