Commit b34d246d by Your Name

candidate without inline

parents b860ebdb 25a7db5d
...@@ -46,6 +46,7 @@ helpers do ...@@ -46,6 +46,7 @@ helpers do
def pin(obj) def pin(obj)
raise ArgumentError, "User id is required" unless user raise ArgumentError, "User id is required" unless user
obj.pinned = true obj.pinned = true
puts "\n\n\n\n\n\n******************HELLOE"
obj.save obj.save
obj.reload.to_hash.to_json obj.reload.to_hash.to_json
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment