paperclip
https://github.com/thoughtbot/paperclip
Ruby
Easy file attachment management for ActiveRecord
Paperclip::Interpolations#timestamp
Returns the timestamp as defined by the <attachment>_updated_at field in the server default time zone unless :use_global_time_zone is set to false. Note that a Rails.config.time_zone change will still invalidate any path or URL that uses :timestamp. For a time_zone-agnostic timestamp, use #updated_at.
Edit
git clone [email protected]:thoughtbot/paperclip.git
cd paperclip
open lib/paperclip/interpolations.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Paperclip--Interpolations-timestamp-for-pr
# Commit to gitgit add lib/paperclip/interpolations.rbgit commit -m "better docs for Paperclip::Interpolations#timestamp"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Paperclip--Interpolations-timestamp-for-pr
hub pull-request
# Celebrate!