Commit d761fc80fc3e658c2d7f759be8d5e8b29747fdfc
1 parent
6a838b8e
Exists in
staging
and in
2 other branches
community_track: fix seed setting
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/community_track/lib/community_track_plugin/track_list_block.rb
... | ... | @@ -100,8 +100,8 @@ class CommunityTrackPlugin::TrackListBlock < Block |
100 | 100 | cookies[:_noosfero_community_tracks_rand_seed] = {value: rand, expires: Time.now + 600} |
101 | 101 | end |
102 | 102 | #XXX postgresql specific |
103 | - seed_val = environment.connection.quote(cookies[:_noosfero_community_tracks_rand_seed]) | |
104 | - environment.connection.execute("select setseed(#{seed_val})") | |
103 | + seed_val = Environment.connection.quote(cookies[:_noosfero_community_tracks_rand_seed]) | |
104 | + Environment.connection.execute("select setseed(#{seed_val})") | |
105 | 105 | end |
106 | 106 | end |
107 | 107 | end | ... | ... |