- 06 1月, 2013 40 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
* core_ext/object/blank * concern * core_ext/class/attribute * deprecation
-
由 Carlos Antonio da Silva 提交于
Avoid swallowing all exceptions that might happen when requiring debugger, just catch a LoadError if it cannot be loaded. Check for more background: https://github.com/rails/rails/commit/28fd867c9bc790636d37a28f288791cd0089a6fd#commitcomment-2386952
-
由 Carlos Antonio da Silva 提交于
It is used by the table formatter only, and it's already inside a routes directory that namespaces it properly, so calling it just "table" seems simpler.
-
由 Carlos Antonio da Silva 提交于
It feels more consistent to have this class called "HtmlTableFormatter", and to have it here with the routes inspector and console formatter, since it's used for both routing error exceptions and the rails info page.
-
由 Andrew White 提交于
Delegate to :class rather than 'self.class'
-
由 Carlos Antonio da Silva 提交于
By checking for object.persisted? first, we avoid the hash lookups for new objects.
-
由 Carlos Antonio da Silva 提交于
When dealing with nested forms, Rails automatically generates a hidden field with the id value of the current object being generated by fields_for. This logic was inside the method that's available from the template object, but we just need it when really dealing with nested attributes, so moving the code to here makes more sense.
-
由 Carlos Antonio da Silva 提交于
Just use it internally from fields_for until we come up with a better solution.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Refactor Route#ast to use or-equals and block, instead of return with a check
-
由 Gosha Arinich 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 David Heinemeier Hansson 提交于
This is not that common of a change to warrant top-line billing and you should read more about the consequences than just toggling a boolean to make best use of it
-
由 David Heinemeier Hansson 提交于
Include the standard reminder that you need to restart for changes in config/initializers to take effect
-
由 Gosha Arinich 提交于
-
由 Akira Matsuda 提交于
* a controller that destroying Weblogs might be WeblogsController * a controller that indexing Posts might be PostsController * Post.all returns a Relation * modernize Model.inspect results
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
* it does not generate fixtures * it generates .text.erb templates
-
由 Carlos Antonio da Silva 提交于
Prefer do-end for multiline block [ci skip]
-
由 Gosha Arinich 提交于
-
由 Rafael Mendonça França 提交于
Fix guides' warning bottom padding
-
由 Gosha Arinich 提交于
-
由 Rafael Mendonça França 提交于
-
由 Steve Klabnik 提交于
New code examples on "Working with JavaScript in Rails" guide.
-
由 Lucas Mazza 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
This is very rarely changed and does not deserve to be in application.rb
-
由 Andrew White 提交于
Remove suggestion that Procs can be used as session secrets. [ci skip]
-
由 David Heinemeier Hansson 提交于
-
由 Rafael Mendonça França 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
deprecate `assert_blank` and `assert_present`.
-
由 Yves Senn 提交于
They don't add any benefits over `assert object.blank?` and `assert object.present?`
-
由 David Heinemeier Hansson 提交于
-
由 Rafael Mendonça França 提交于
-