lib/rom/sql/plugin/timestamps.rb in rom-sql-2.0.0.beta1 vs lib/rom/sql/plugin/timestamps.rb in rom-sql-2.0.0.beta2
- old
+ new
@@ -31,11 +31,11 @@
# result :one
# use :timestamps
# timestamps :created_at, :updated_at
# end
#
- # create_user = rom.command(:user).create.with(name: 'Jane')
+ # create_user = rom.command(:user).create.curry(name: 'Jane')
#
# result = create_user.call
# result[:created_at] #=> Time.now.utc
#
# @param [Symbol] name of the attribute to set
@@ -55,10 +55,10 @@
# result :one
# use :timestamps
# datestamps :created_on, :updated_on
# end
#
- # create_user = rom.command(:user).create.with(name: 'Jane')
+ # create_user = rom.command(:user).create.curry(name: 'Jane')
#
# result = create_user.call
# result[:created_at] #=> Date.today
#
# @param [Symbol] name of the attribute to set