lib/generators/domp/templates/model_authentication.rb in domp-0.0.2 vs lib/generators/domp/templates/model_authentication.rb in domp-0.0.3

- old
+ new

@@ -13,10 +13,10 @@ create( <%= class_name.downcase %>: <%= class_name.downcase %>, authentication_provider: provider, uid: params['uid'], token: params['credentials']['token'], - token_expires_at: params['credentials']['expires_at'], + token_expires_at: Time.at(params['credentials']['expires_at']).to_datetime, params: params, ) end end <% end -%> \ No newline at end of file