aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--activemodel/lib/active_model/naming.rb1
-rw-r--r--activerecord/lib/active_record/attributes.rb2
-rw-r--r--guides/source/i18n.md3
-rw-r--r--guides/source/testing.md2
5 files changed, 7 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 8bbc7c8f7e..162eea0e9b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,12 +24,12 @@ rvm:
- 2.2
- ruby-head
- rbx-2
- - jruby
+ - jruby-head
matrix:
allow_failures:
- env: "GEM=ar:mysql"
- rvm: rbx-2
- - rvm: jruby
+ - rvm: jruby-head
- env: "GEM=aj"
- env: "GEM=aj:integration"
fast_finish: true
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb
index ada1f9a4f3..2bc3eeaa19 100644
--- a/activemodel/lib/active_model/naming.rb
+++ b/activemodel/lib/active_model/naming.rb
@@ -1,5 +1,6 @@
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/module/introspection'
+require 'active_support/core_ext/module/remove_method'
module ActiveModel
class Name
diff --git a/activerecord/lib/active_record/attributes.rb b/activerecord/lib/active_record/attributes.rb
index b263a89d79..faf5d632ec 100644
--- a/activerecord/lib/active_record/attributes.rb
+++ b/activerecord/lib/active_record/attributes.rb
@@ -14,7 +14,7 @@ module ActiveRecord
end
module ClassMethods # :nodoc:
- # Defines or overrides a attribute on this model. This allows customization of
+ # Defines or overrides an attribute on this model. This allows customization of
# Active Record's type casting behavior, as well as adding support for user defined
# types.
#
diff --git a/guides/source/i18n.md b/guides/source/i18n.md
index fd2051e675..fbee267975 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -809,7 +809,7 @@ So, for example, instead of the default error message `"cannot be blank"` you co
| validation | with option | message | interpolation |
| ------------ | ------------------------- | ------------------------- | ------------- |
-| confirmation | - | :confirmation | - |
+| confirmation | - | :confirmation | attribute |
| acceptance | - | :accepted | - |
| presence | - | :blank | - |
| absence | - | :present | - |
@@ -829,6 +829,7 @@ So, for example, instead of the default error message `"cannot be blank"` you co
| numericality | :equal_to | :equal_to | count |
| numericality | :less_than | :less_than | count |
| numericality | :less_than_or_equal_to | :less_than_or_equal_to | count |
+| numericality | :other_than | :other_than | count |
| numericality | :only_integer | :not_an_integer | - |
| numericality | :odd | :odd | - |
| numericality | :even | :even | - |
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 94cfcf12b7..fa55c09c64 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -1201,7 +1201,7 @@ within a model:
```ruby
require 'test_helper'
-class ProductTest < ActiveSupport::TestCase
+class ProductTest < ActiveJob::TestCase
test 'billing job scheduling' do
assert_enqueued_with(job: BillingJob) do
product.charge(account)