- 11 1月, 2016 6 次提交
-
-
由 Kasper Timm Hansen 提交于
Pass the current locale to Inflector from the pluralize text helper.
-
由 Jaime Iniesta 提交于
The pluralize text helper uses the Inflector to determine the plural form. The inflector accepts an optional parameter for the locale, so we can pass it from the text helper to have locale-aware pluralizations on the text helpers level. The pluralize text helper now only accepts 2 positional arguments: `count` and `singular`. Passing `plural` as a positional argument is now deprecated.
-
由 Kasper Timm Hansen 提交于
Running tests with multiple line numbers
-
由 Siva Gollapalli 提交于
-
由 Kasper Timm Hansen 提交于
Test basic auth with symbols in password
-
由 Santiago Pastorino 提交于
remove mentions of legacy mysql adapter from guides
-
- 10 1月, 2016 15 次提交
-
-
由 Jon Moss 提交于
Add Example for using config_for
-
由 Matthew Draper 提交于
Update postgresql version to 9.4 for travis.
-
由 Sean Griffin 提交于
[ci skip] fix typo
-
由 Akshay Vishnoi 提交于
Now available - https://docs.travis-ci.com/user/using-postgresql/
-
由 Kasper Timm Hansen 提交于
When running passing condition assertions in the same test the user had already been saved at that point. Split out so we have a not yet persisted user. Rename condition tests to improve clarity a bit.
-
由 Kasper Timm Hansen 提交于
Mistakenly interpreted the test case as a sign that we should switch to before_save, when the original pitch use case was intended as before_create. Revert a3ab6ad0.
-
由 Kasper Timm Hansen 提交于
Adding `if` and `unless` support doesn't bode well if the callback to assign a token only runs on create. Switch to `before_save`, but keep the conditional so that no token already assigned is overriden.
-
由 Kasper Timm Hansen 提交于
Fix the NoMethodErrors introduced in 224eddfc, when adding conditional token creation. The model declarations but the column wasn't added to the schema.
-
由 Kasper Timm Hansen 提交于
Support :if and :unless in has_secure_token
-
由 Akshay Vishnoi 提交于
-
由 Griffin Smith 提交于
Pass through :if and :unless options from has_secure_token to the generated before_create callback
-
由 Scott Bronson 提交于
-
由 Kasper Timm Hansen 提交于
rake log:clear task updated
-
由 Kasper Timm Hansen 提交于
It might be tough for readers to know why we implement `===`, and where the Regexp in `derive_regexp` came from.
-
由 Kasper Timm Hansen 提交于
The line filter parsing added to ActiveSupport::TestCase is only half the story to enable line filtering. The other half, of adding the patterns to the options, is done in the Minitest plugin that Railties has. Thus it makes more sense to have the filter in Railties with the other half and all the line filtering tests. Move the filter and extend Active Support in an initializer, so that when users or `rails/all.rb` require `rails/test_unit/railtie` we can still filter by line.
-
- 09 1月, 2016 19 次提交
-
-
由 Richard Schneeman 提交于
match the environment variable name that actually checking and error message
-
由 Pramod 提交于
- Avoided truncating all files if no ENV['LOGS'] specified - Updated task to accept LOGS=all for truncating all files from log/ i.e. log/*log - If no LOGS specified will truncates standard environment log files i.e. 'development,test,production' - CHANGELOG & guide update added - bin/setup test cases fixed
-
由 प्रथमेश Sonpatki 提交于
[ci skip] `automatic_inverse_of` returns `false` not `nil` (document …
-
由 yuuji.yaginuma 提交于
The error message has become a `DISABLE_DATABASE_ENVIRONMENT_CHECK`, modified to match the error message. ref: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/migration.rb#L161
-
由 Richard Schneeman 提交于
Merge pull request #22987 from prathamesh-sonpatki/add-missing-changelong-for-schema-migrations-version Added missing CHANGELOG entry for https://github.com/rails/rails/pull/22976
-
-
由 yui-knk 提交于
-
由 Sean Griffin 提交于
Get update_attributes working with SchemaMigration
-
由 Sean Griffin 提交于
This is really strange, as it passes on Travis for 2.3, and it passes for me locally on 2.2. But on travis w/ 2.2, passing `Float::INFINITY` in is resulting in an infinite loop. This should resolve it.
-
由 Richard Schneeman 提交于
[ci skip] Fix typo Renderering --> Rendering
-
由 Akshay Vishnoi 提交于
-
由 Sean Griffin 提交于
This is an alternate implementation to #22875, that generalizes a lot of the logic that type decorators are going to need, in order to have them work with arrays, ranges, etc. The types have the ability to map over a value, with the default implementation being to just yield that given value. Array and Range give more appropriate definitions. This does not automatically make ranges time zone aware, as they need to be added to the `time_zone_aware` types config, but we could certainly make that change if we feel it is appropriate. I do think this would be a breaking change however, and should at least have a deprecation cycle. Closes #22875. /cc @matthewd
-
由 Sean Griffin 提交于
Prevent destructive action on production database
-
由 schneems 提交于
You cannot use `update_attributes` on models that do not have a primary key. Since SchemaMigration versions are guaranteed to be unique (they have a unique index on them) we can safely use them as a primary key.
-
由 schneems 提交于
-
由 David Heinemeier Hansson 提交于
Revert "Move async execution from celluloid to concurrent-ruby"
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
Move async execution from celluloid to concurrent-ruby
-
由 schneems 提交于
-