* working around conn.update

This commit is contained in:
Seth Call 2014-02-25 03:25:34 +00:00
parent cd36caf3e9
commit 051fcd8b04
4 changed files with 11 additions and 2 deletions

View File

@ -124,3 +124,4 @@ remove_is_downloadable.sql
scores_mod_connections2.sql
track_download_counts.sql
scores_mod_users2.sql
user_bio.sql

1
db/up/user_bio.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE users ALTER COLUMN biography TYPE TEXT;

View File

@ -86,7 +86,14 @@ module JamRuby
city = location.city
end
conn.update(ip_address: ip_address, locidispid: locidispid, latitude: latitude, longitude: longitude, countrycode: countrycode, region:region, city: city)
conn.ip_address = ip_address
conn.locidispid = locidispid
conn.latitude = latitude
conn.longitude = longitude
conn.countrycode = countrycode
conn.region = region
conn.city = city
conn.save!(validate: false)
end
sql =<<SQL

View File

@ -213,7 +213,7 @@ end
def formal_leave_by user
in_client(user) do
find('#session-leave').trigger(:click)
find('#btn-accept-leave-session').trigger(:click)
#find('#btn-accept-leave-session').trigger(:click)
expect(page).to have_selector('h2', text: 'feed')
end
end