evazion
02122343c3
dmails: don't default IP addr to 127.0.0.1 in database ( fixes #2908 ).
...
Bug introduced in 1400f64; that commit changed dmails so that
creator_ip_addr defaulted to CurrentUser.ip_addr like this:
after_initialize :initialize_attributes, if: :new_record?
def initialize_attributes
self.from_id ||= CurrentUser.id
self.creator_ip_addr ||= CurrentUser.ip_addr
end
...but creator_ip_addr already defaulted to 127.0.0.1 from the database,
so the ||= assignment didn't work. Remove the database default so we
always default to CurrentUser.ip_addr.
2017-03-01 19:51:48 -06:00
..
2017-02-07 13:40:19 -08:00
2011-11-01 17:51:15 -04:00
2015-08-18 17:40:53 -07:00
2014-04-16 17:43:34 -07:00
2017-02-03 04:03:44 -06:00
2016-12-21 11:43:46 -08:00
2017-02-06 17:07:09 -08:00
2017-02-04 17:18:51 -06:00
2011-08-15 19:41:50 -04:00
2014-07-23 15:15:47 -07:00
2016-09-18 14:13:11 +05:00
2017-02-04 17:18:51 -06:00
2016-12-28 15:47:28 -08:00
2013-04-28 00:04:52 -07:00
2017-02-04 17:18:51 -06:00
2017-02-25 23:05:44 -06:00
2014-11-07 15:03:00 -08:00
2017-03-01 19:51:48 -06:00
2016-09-10 10:41:27 +05:00
2016-11-01 13:44:36 -07:00
2013-03-19 23:10:10 +11:00
2017-02-25 23:05:44 -06:00
2015-02-09 19:10:47 -08:00
2013-03-19 23:10:10 +11:00
2016-01-18 17:13:26 -08:00
2011-07-22 17:34:43 -04:00
2017-02-21 13:40:52 -08:00
2014-10-22 17:22:36 -07:00
2016-12-21 11:43:46 -08:00
2013-03-19 23:10:10 +11:00
2017-02-23 22:51:17 -06:00
2015-07-28 15:45:01 -07:00
2013-08-02 16:55:30 -07:00
2013-08-04 17:11:51 -07:00
2017-02-21 15:04:55 -08:00
2017-02-21 13:40:52 -08:00
2017-02-21 15:04:55 -08:00
2013-07-24 18:12:44 -07:00
2017-02-04 17:18:51 -06:00
2017-02-03 04:03:44 -06:00
2017-02-04 17:18:51 -06:00
2017-02-04 17:18:51 -06:00
2017-02-04 17:18:51 -06:00
2017-02-04 17:18:51 -06:00
2017-02-04 17:18:51 -06:00
2017-02-04 17:18:51 -06:00
2017-02-08 23:31:30 -06:00
2017-01-09 17:31:14 -08:00
2017-02-04 17:18:52 -06:00
2017-02-04 17:18:51 -06:00
2013-04-28 00:04:52 -07:00
2014-12-03 14:07:42 -08:00
2013-03-19 23:10:10 +11:00
2016-09-28 11:38:34 -07:00
2017-02-27 17:00:24 -08:00
2016-10-25 16:20:47 -07:00