instructure-active_model-better_errors 1.6.5.rails2.2 → 1.6.5.rails2.3

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmU3ZjliMGU5NWJiMjhiYThmMzEyNWY1YjVkNmI4Y2I5MzFhYTVjMg==
4
+ YzkxYTBjNmNhNjNmMDBmM2Q0NDViYTA3YmNhZmY4OWYyMTY0NzFiNQ==
5
5
  data.tar.gz: !binary |-
6
- NTAxNTYxODVhNDYxNWQ0YTM2YTAyODhlYzU1M2VmZGRiYjk3YWU5ZA==
6
+ Mjk1NGY5MmVhOTE2ZTk5ZDNmMzE3YTE4YzExZTc4NjAxODUzNzFkYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2M5Mzk0NDBkZDM0ZmFhYjA2NWQ4NGViNTY4YmUxZTRiZjc4NGVkYzhkMmRk
10
- ZGMwYWE5M2FjMjcyYzUwMGExNTY4MDU3ZjgyMDYwMWMzM2MzNGM5MDJiMDE2
11
- Y2I2YWVhYzdhNzExMmZmOWU1Y2M4N2QxMmNlNjE2N2I4Y2IxMjU=
9
+ YmE2NjQwYTQ0N2IzOGRjYzc1YjkwYmQ2OTIzZTMyNGQzYjMwM2QwNmNhZDZj
10
+ NzMwNWJiMjY5NzlkZjU2ZDg4MmIyYjg5NWQwZjg0OTFkNWJlMDk1NzlmZWY3
11
+ ZTI1YmViN2IxNjU4ZGJjMTYxNWY1NmViOThiZjZlNGYxZTZhOWQ=
12
12
  data.tar.gz: !binary |-
13
- YjViNTNhOWE3ZmRmOWIwMDA2Mjk3MzgxNTYwMzY2ODQ2MTY4ZjczNzUzN2Uz
14
- NDk4ZDdmNWE5MGNmMDBkNGQ3NzVkYjE2ODRhNDFjMjJmMDZmMTc2MDU0ZTdl
15
- NzY2NTA3MzRjOTA2M2FmYmMwYWQ0ZDJhZGQxNDFhMGVlMWRiNjI=
13
+ NTYzZWFmMjE5M2JmM2Y4NmZlZDViZTIxNWE0Y2M1YTFlYTk2MTMzNzEwZGJk
14
+ OGYxNDNhMmE4M2ZiNmQ0ZjdhOWE1ZTllMDJmMWFlN2U5ZDgxNDU1MDg2ZWNj
15
+ OThhODRmMjc1Njc5ZGY5NTA1OGI5YTRkM2U2NDQwYTZkMGNmYTA=
@@ -55,6 +55,7 @@ module ActiveModel
55
55
  def add(attribute, message=nil, options = nil)
56
56
  options ||= {}
57
57
  options = { message: options } unless options.is_a?(Hash)
58
+ options[:message] ||= options[:default] # rails2 -> rails3 compat
58
59
  if options[:strict]
59
60
  error = ErrorMessage.build(attribute, message, options)
60
61
  message = ::ActiveModel::BetterErrors.format_message(@base, error)
@@ -5,6 +5,6 @@ module ActiveModel
5
5
  # BetterErrors
6
6
  #
7
7
  module BetterErrors
8
- VERSION = '1.6.5.rails2.2'
8
+ VERSION = '1.6.5.rails2.3'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instructure-active_model-better_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5.rails2.2
4
+ version: 1.6.5.rails2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Qian
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-12 00:00:00.000000000 Z
13
+ date: 2014-02-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler