- 04 3月, 2012 9 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
This makes rails behave properly when you serve static assets and you have X-Sendfile headers enabled. Nevertheless in most cases you should not rely on that and serve static assets with a webserver like Apache or Nginx (as you already have it in place anyway if you use X-Sendfile)
-
由 Piotr Sarnacki 提交于
Refactor and cleanup in some ActiveRecord modules
-
由 José Valim 提交于
simplify namespace assignment in fields_for
-
由 Santiago Pastorino 提交于
remove usage of AS::OrderedHash from other places
-
由 Vishnu Atrai 提交于
-
由 Vijay Dev 提交于
Refactored code
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
- 03 3月, 2012 14 次提交
-
-
由 Jon Leighton 提交于
Use public_send instead of send in ActiveModel::Model initialize
-
由 Guillermo Iguaran 提交于
-
由 José Valim 提交于
Add docs with usage examples for ActiveModel::Model
-
由 Carlos Antonio da Silva 提交于
Also add test to ensure basic model does not explode when initialized with nil.
-
由 Carlos Antonio da Silva 提交于
* Avoid double hash lookups in AR::Reflection when reflecting associations/aggregations * Minor cleanups: use elsif, do..end, if..else instead of unless..else * Simplify DynamicMatchers#respond_to? * Use "where" instead of scoped with conditions hash * Extract `scoped_by` method pattern regexp to constant * Extract noisy class_eval from method_missing in dynamic matchers * Extract readonly check, avoid calling column#to_s twice in persistence * Refactor predicate builder, remove some variables
-
由 Jeremy Kemper 提交于
Add ActiveModel::Model, a mixin to make plain Ruby objects work with AP out of box
-
由 Guillermo Iguaran 提交于
-
由 Santiago Pastorino 提交于
Closes #5245
-
由 Sergey Nartimov 提交于
-
由 Aaron Patterson 提交于
-
由 Piotr Sarnacki 提交于
It fails if routes from to railties are called in one context, for example: blog.posts_path and main_app.users_path
-
由 José Valim 提交于
don't pass unnecessary argument
-
由 Guy Bolton King 提交于
Having read the previous version of the documentation, I was surprised when a wildcarded CSS pattern in precompile picked up a whole load of SCSS files! I've amended lines 426 onwards to document the behaviour.
-
由 Sergey Nartimov 提交于
-
- 02 3月, 2012 14 次提交
-
-
由 José Valim 提交于
Optimize routes generation in simple cases. If you pass to the route helper the same amount of arguments as the required segments, route generation will be optimized as a string interpolation. After this commit, `post_path(post)` is about 6.5 times faster, `post_url(post)` is about 5 times.
-
由 Piotr Sarnacki 提交于
-
由 José Valim 提交于
Stop SafeBuffer#clone_empty from issuing warnings
-
由 Carlos Antonio da Silva 提交于
Logic in clone_empty method was dealing with old @dirty variable, which has changed by @html_safe in this commit: https://github.com/rails/rails/commit/139963c99a955520db6373343662e55f4d16dcd1 This was issuing a "not initialized variable" warning - related to: https://github.com/rails/rails/pull/5237 The logic applied by this method is already handled by the [] override, so there is no need to reset the variable here.
-
-
由 Piotr Sarnacki 提交于
Allow empty fieldsets to be created without a block.
-
由 Anuj Dutta 提交于
Removed max-stale from the setting the cache-headers in the response as max-stale is a cache request header.
-
由 José Valim 提交于
-
由 Xavier Noria 提交于
Commit 3dbedd28 added NOT NULL constraints both to table creation and modification. For creation the new default makes sense, but the generic situation for changing a table is that there exist records. Those records have no creation or modification timestamps, and in the general case you don't even know them, so when updating a table these constraints are not going to work. See a bug report for this use case in #3334.
-
由 Waseem Ahmad 提交于
-
由 Ben Pickles 提交于
-
由 Vijay Dev 提交于
Add release dates to documentation
-
由 claudiob 提交于
Set "March 1, 2012" as the release date for 3.2.2, 3.1.4, 3.0.12
-
由 Aaron Patterson 提交于
* master-security: Ensure [] respects the status of the buffer. delete vulnerable AS::SafeBuffer#[] use AS::SafeBuffer#clone_empty for flushing the output_buffer add AS::SafeBuffer#clone_empty fix output safety issue with select options Conflicts: actionpack/lib/action_view/helpers/tags/base.rb
-
- 01 3月, 2012 3 次提交
-
-
由 Jeremy Kemper 提交于
-
由 José Valim 提交于
-
由 Aaron Patterson 提交于
Fix layout lookup for anonymous controller
-