futuresinc-attachment_fu 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
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