futuresinc-attachment_fu 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/attachment_fu.gemspec +1 -1
- data/lib/attachment_fu.rb +2 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
data/attachment_fu.gemspec
CHANGED
data/lib/attachment_fu.rb
CHANGED
|
@@ -447,9 +447,9 @@ module AttachmentFu # :nodoc:
|
|
|
447
447
|
if Object.const_defined?(:I18n) # Rails >= 2.2
|
|
448
448
|
unless enum.nil? || enum.include?(send(attr_name))
|
|
449
449
|
unless attachment_options["#{attr_name.to_s}_validation_message".to_sym].blank?
|
|
450
|
-
errors.add attr_name, I18n.translate(attachment_options["#{attr_name.to_s}_validation_message".to_sym])
|
|
450
|
+
errors.add self.class.human_attribute_name(attr_name), I18n.translate(attachment_options["#{attr_name.to_s}_validation_message".to_sym])
|
|
451
451
|
else
|
|
452
|
-
errors.add attr_name, I18n.translate("activerecord.errors.messages.inclusion", attr_name => enum)
|
|
452
|
+
errors.add self.class.human_attribute_name(attr_name), I18n.translate("activerecord.errors.messages.inclusion", attr_name => enum)
|
|
453
453
|
end
|
|
454
454
|
end
|
|
455
455
|
else
|