]> git.openstreetmap.org Git - rails.git/commit
Alias the user creation_time column
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Dec 2021 14:48:07 +0000 (14:48 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Dec 2021 14:48:07 +0000 (14:48 +0000)
commit40e8482825187b61538ebedaf8431c7713f54138
tree652eb87927d993e4c484bbd3306939bfb70463f5
parentbf5f2890ac15b646a1d2cb571e4bbf0e032414ac
Alias the user creation_time column

This allows rails to set the created_at automatically, and so avoids
us from having to do so in a callback. It also hides the unusual
db column name from the rest of the app.
app/models/user.rb
app/views/api/users/_user.json.jbuilder
app/views/api/users/_user.xml.builder
app/views/users/_user.html.erb
app/views/users/show.html.erb