See issue #332
Minitest 3.3.0 was released a few days ago and currently dies with: ``` /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:826:in `block in _run_suite': undefined method `run' for #<ConfigurationTest:0x007faf1d5835f8> (NoMethodError) from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:818:in `map' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:818:in `_run_suite' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:805:in `block in _run_suites' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:805:in `map' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:805:in `_run_suites' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:778:in `_run_anything' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:967:in `run_tests' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:954:in `block in _run' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:953:in `each' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:953:in `_run' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:942:in `run' from /Users/norman/.rvm/gems/ruby-1.9.3-p194-perf/gems/minitest-3.3.0/lib/minitest/unit.rb:700:in `block in autorun' rake aborted! Command failed with status (1): [/Users/norman/.rvm/rubies/ruby-1.9.3-p194-...] ``` I don't have time to track this down right now, will check later if this is a bug in our code or theirs.
Removed or begin in favour of ||= do
This uses one less block than previously.
Clarify globalize slug documentation further
It should now be clear that both the model's table and the model's translation table must have a slug field, and the model must declare the slug field translatable.
Document necessary location of slug column with Globalize
This adds a point of clarification in the rdoc and inside the globalize module itself to point out that the slug column must be present on the translation table, not the primary model table itself. It also (real friendly-like) corrects some faulty parallelism.
Model#slug= was completely ignored and non-functional. This replaces it with working functionality that has the same interface used by SimpleI18n.
Without this change, FriendlyId::Slug is not accessible from migrations unless friendly_id/slug is explicitly required. This should resolve issue #299.
… into raymccoy
Delegate to_param to super when friendly_id is not present.
Currently ActiveRecord::Base#to_param returns nil when the record is not persisted. Rather than calling to_s on id, call super instead so that we get the default behavior. Closes #294.
This reverts commit 759c50c. I did something wrong here and the exlusions didn't work, reverting for now to investigate. [ci skip]
Also exlude some other combinations to avoid too huge a matrix.