- 10 3月, 2014 12 次提交
-
-
由 Rafael Mendonça França 提交于
links
-
由 Rafael Mendonça França 提交于
This will avoid the confusing flunk logic
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Yves Senn 提交于
fix minor typo 'fields_for'. [ci skip]
-
由 Cakey | Buddy Magsipoc 提交于
-
由 Yves Senn 提交于
Delete instances of Parrot after each test.
-
由 Guo Xiang Tan 提交于
-
由 Godfrey Chan 提交于
Enhance readability of ActionView DateHelper#distance_of_time_in_words
-
由 Kenny Meyer 提交于
Refactor numerical constants to module constants which give the numbers a contextual meaning. This commit aims to provide quicker understanding for part of the implementation of the DateHelper#distance_of_time_in_words method.
-
由 Yves Senn 提交于
Run ActiveModel test suites in random order.
-
由 Zuhao Wan 提交于
This gets the whole ActiveModel test suites working even if `self.i_suck_and_my_tests_are_order_dependent!` is disabled in `ActiveSupport::TestCase`. Two places are found that potentially leak global state. This patch makes sure states are restored so that none of the changes happen in a single test will be carried over to subsequence tests.
-
- 09 3月, 2014 11 次提交
-
-
由 Andrew White 提交于
Replace additional instances of map.flatten with flat_map
-
由 Carlos Antonio da Silva 提交于
-
由 Andrew White 提交于
If the options :shallow_prefix and :shallow_path are not set in the scope options then copy them from the normal :as and :path options if they are set.
-
由 Andrew White 提交于
If a developer has specified either :path or :as in the options hash then these should be used as the defaults for :shallow_path and :shallow_prefix. Fixes #14241.
-
由 Andrew White 提交于
By tracking the depth of resource nesting we can push the need for nested shallow scoping to only those routes that are nested more than one deep. This allows us to keep the fix for #12498 and fix the regression in #14224. Fixes #14224.
-
由 Andrew White 提交于
Originally with_scope_level was exclusively for managing scope levels with resources, however it is now used for other things so it makes more sense to move the responsibility for setting the :scope_level_resource to the resource_scope method. This eliminates repeatedly setting it to the same resource as each resource method scope is evaluated.
-
由 Yves Senn 提交于
Fix errors for four of the code samples [ci skip]
-
由 Peter Markou 提交于
The four code samples that fail to run are: - Add attribute magic to objects. Fixed by introducing a Person instance variable. - Tracking value changes. Fixed by replacing `attr_accessor` with `define_attribute_methods`, providing getter and setter methods for `name` and providing the missing `Person#save` method. A call to `Person#save` has to precede the `person.name = 'robert'` assignment, if we want `previous_changes` to include 'bob'. - Adding `errors` interface to objects. Fixed by introducing a Person instance variable, assigning `nil` to its name and calling `Person#validate!`. - Custom validators. Fixed by defining `HasNameValidator` before it is used by `ValidatorPerson`. All the code samples can now be run smoothly. Call Dirty#changes_applied in Person#save, instead of modifying instance vars.
-
由 Santiago Pastorino 提交于
Make the rails:template rake task load initializers
-
由 Santiago Pastorino 提交于
Fix OrderedHash.select to return self instance.
-
由 Santiago Pastorino 提交于
Make CSRF failure logging optional/configurable.
-
- 08 3月, 2014 9 次提交
-
-
由 Robin Dupret 提交于
Templates could rely on irregular inflections or external libraries for instance so we should load the application's initializers when running the rails:template task. The introducing commit of this feature is f7f11361 ; the initializers have never been loaded invoking this task. Fixes #12133.
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Pavel Penkov 提交于
-
由 Andrew White 提交于
Make sure we clean preview_interceptors
-
由 Arthur Neves 提交于
We should make sure we clean preview_interceptors after each test so they dont leaky to the next test
-
由 Arthur Nogueira Neves 提交于
Add preventDefault() on click event
-
由 Patrick Perey 提交于
-
由 Arthur Neves 提交于
On ruby 2.1.1 the behavior of .select and .reject has changed. They will return a Hash new instance, so we need to override them to keep the instance object class.
-
- 07 3月, 2014 5 次提交
-
-
由 Vijay Dev 提交于
Conflicts: guides/source/4_1_release_notes.md
-
由 dmathieu 提交于
Thank you @bquorning
-
由 dmathieu 提交于
[ci-skip] Closes rails/rails#14294
-
由 Vijay Dev 提交于
Add "Low-Level Caching" part to "Caching With Rails" guide
-
由 Aaron Patterson 提交于
Do note remove `Content-Type` when `render :body`
-
- 06 3月, 2014 3 次提交
-
-
由 Yves Senn 提交于
Fix guide about `config.active_record.default_timezone` [ci skip]
-
由 joker1007 提交于
Now the initial value of ActiveRecord.default_timezone is always :utc
-
由 Nikolay Shebanov 提交于
-