uses the month (%m) instead of the minute (%M) in the proposal code

This commit is contained in:
kikito
2015-10-14 12:40:26 +02:00
parent 2069376c4f
commit 72b6126f30

View File

@@ -65,7 +65,7 @@ class Proposal < ActiveRecord::Base
end
def code
"#{Setting.value_for("proposal_code_prefix")}-#{created_at.strftime('%Y-%M')}-#{id}"
"#{Setting.value_for("proposal_code_prefix")}-#{created_at.strftime('%Y-%m')}-#{id}"
end
def after_commented