fixes conflicts with master

This commit is contained in:
rgarcia
2015-10-14 15:48:55 +02:00
63 changed files with 1394 additions and 1677 deletions

View File

@@ -3,6 +3,7 @@ module Taggable
included do
acts_as_taggable
validate :max_number_of_tags
end
def tag_list_with_limit(limit = nil)
@@ -17,4 +18,8 @@ module Taggable
count = tags.size - limit
count < 0 ? 0 : count
end
def max_number_of_tags
errors.add(:tag_list, :less_than_or_equal_to, count: 6) if tag_list.count > 6
end
end

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