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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 6
2
+ :patch: 7
3
3
  :major: 1
4
4
  :minor: 0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{attachment_fu}
5
- s.version = "1.0.6"
5
+ s.version = "1.0.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Technoweenie"]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futuresinc-attachment_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Technoweenie