Skip to content

Commit

Permalink
We should be able to explicitly set the created_at date for a snip, w…
Browse files Browse the repository at this point in the history
…hen creating through the web interface.
  • Loading branch information
lazyatom committed Jun 1, 2008
1 parent 6737813 commit cb4fa30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vanilla/dynasnips/edit.rb
Expand Up @@ -27,7 +27,7 @@ def post(*args)
snip.save
%{Saved snip #{Vanilla::Routes.link_to snip_attributes[:name]} ok}
rescue Exception => e
snip_attributes[:created_at] = Time.now
snip_attributes[:created_at] ||= Time.now
Soup << snip_attributes
%{Created snip #{Vanilla::Routes.link_to snip_attributes[:name]} ok}
end
Expand Down

0 comments on commit cb4fa30

Please sign in to comment.