Kir Shatrov
|
831be98f9a
|
Use frozen-string-literal in ActiveRecord
|
2017-07-19 22:27:07 +03:00 |
|
Matthew Draper
|
87b3e226d6
|
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590 , reversing
changes made to afb66a5a59 .
|
2017-07-02 02:15:17 +09:30 |
|
Kir Shatrov
|
cfade1ec7e
|
Enforce frozen string in Rubocop
|
2017-07-01 02:11:03 +03:00 |
|
Rafael Mendonça França
|
55f9b8129a
|
Add three new rubocop rules
Style/SpaceBeforeBlockBraces
Style/SpaceInsideBlockBraces
Style/SpaceInsideHashLiteralBraces
Fix all violations in the repository.
|
2016-08-16 04:30:11 -03:00 |
|
Xavier Noria
|
b326e82dc0
|
applies remaining conventions across the project
|
2016-08-06 20:20:22 +02:00 |
|
Xavier Noria
|
d22e522179
|
modernizes hash syntax in activerecord
|
2016-08-06 19:37:57 +02:00 |
|
Xavier Noria
|
9617db2078
|
applies new string literal convention in activerecord/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
|
2016-08-06 18:26:53 +02:00 |
|
Aaron Patterson
|
61774e0d49
|
please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT
|
2011-06-06 15:47:13 -07:00 |
|
Jon Leighton
|
253bb6b926
|
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
|
2011-06-04 23:47:03 +01:00 |
|
Santiago Pastorino
|
b451de0d6d
|
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
|
2010-08-14 04:12:33 -03:00 |
|
Aaron Patterson
|
1db8ed0f4b
|
activerecord tests should inherit from ActiveRecord::TestCase
|
2010-07-14 16:35:52 -07:00 |
|
José Valim
|
e714b499cc
|
Move validator, human_name and human_attribute_name to ActiveModel, remove deprecated error messages and add i18n_scope and lookup_ancestors.
Signed-off-by: Carl Lerche <carllerche@mac.com>
|
2009-10-20 17:52:32 -07:00 |
|
Arthur Zapparoli
|
ce2422ceaf
|
Model#human_attribute_name now accept symbols [#3025 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2009-08-09 23:55:54 +01:00 |
|
Sven Fuchs
|
12118963ac
|
use :en as a default locale (in favor of :en-US)
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
|
2008-11-18 14:23:53 +01:00 |
|
Marko Seppae
|
2d03a4c668
|
i18n: fixed failing tests after removing #populate and #store_translations
|
2008-08-27 10:37:01 +02:00 |
|
Sven Fuchs
|
49859b0bb1
|
I18n: fix activerecord i18n test for classy backend
|
2008-08-25 11:48:03 +02:00 |
|
Jeremy Kemper
|
950ea33242
|
Fix test to assign the module instead of a new instance
|
2008-08-24 11:08:49 -07:00 |
|
Sven Fuchs
|
e43cdb93f0
|
fix activerecord i18n_test to work with backend classes
|
2008-08-20 17:57:46 +02:00 |
|
Iain Hecker
|
81e14fada1
|
Added Base.human_name method
|
2008-08-20 17:53:04 +02:00 |
|