search for: one_step_forward

Displaying 1 result from an estimated 1 matches for "one_step_forward".

2011 Oct 02
4
Aggregated attribute changed but _was is changed too. So nothing is update in database.
...tains an array of point object. I''m currently working on a "hunting" module in web browser based game, and i need a crontab executed every n minutes to move the character on the map. I''ve created a function which remove the first point from the path and then save: def one_step_forward! path_will_change! path.points.shift end But look at this rails console tests: ruby-1.9.3-rc1 :001 > @hunting = Hunting.find(1) Hunting Load (7.6ms) SELECT "huntings".* FROM "huntings" WHERE "huntings"."id" = $1 LIMIT 1 [["id", 1]] =&...