- 20 8月, 2014 1 次提交
-
-
由 Bradley Buda 提交于
This merges in the code from the breach-mitigation-rails gem that masks authenticity tokens on each request by XORing them with a random set of bytes. The masking is used to make it impossible for an attacker to steal a CSRF token from an SSL session by using techniques like the BREACH attack. The patch is pretty simple - I've copied over the [relevant code](https://github.com/meldium/breach-mitigation-rails/blob/master/lib/breach_mitigation/masking_secrets.rb) and updated the tests to pass, mostly by adjusting stubs and mocks.
-
- 15 8月, 2014 5 次提交
-
-
由 Aaron Patterson 提交于
Perf optimization for `url_for` called w/ Hash
-
由 schneems 提交于
Benchmarking the existing code: ```ruby { :only_path => options[:host].nil? }.merge!(options.symbolize_keys)) ``` Against optimized code, that does not require a new hash or a merge: ```ruby options = options.symbolize_keys options[:only_path] = options[:host].nil? unless options.key?(:only_path) options ``` We see a statistically significant performance gain: ![](https://www.dropbox.com/s/onocpc0zfw4kjxl/Screenshot%202014-08-14%2012.45.30.png?dl=1) Updated to not mutate incoming parameters
-
由 Akira Matsuda 提交于
-
由 Aaron Patterson 提交于
-
由 Akira Matsuda 提交于
-
- 14 8月, 2014 34 次提交
-
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
[ci skip] updated 'where' in association documention to new style syntax
-
由 Akira Matsuda 提交于
Looks like #first wasn't warm enough...
-
由 Santiago Pastorino 提交于
[Regression 4.0 -> 4.1] Fixed AR::Relation#where edge case with Hash and other Relation
-
由 Jeremy Kemper 提交于
Add I18n support for `:placeholder` HTML option is passed to form fields
-
由 Bogdan Gusiev 提交于
Example: Author.where(posts: { author_id: Author.where(country_id: 1) }).joins(:posts)
-
由 Akira Matsuda 提交于
-
由 Yves Senn 提交于
Write timestamps only if there are timestamps columns Conflicts: activerecord/CHANGELOG.md
-
由 Tom Kadwill 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
The error was moved outside of the `ClassMethods` module.
-
由 Akira Matsuda 提交于
Or some tests fail when run in random order
-
由 Yves Senn 提交于
Fixes to ActionController::TemplateAssertions
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
this will help us to encapsulate magical symbols so hopefully we can eliminate hardcoded magic symbols
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
now we don't have to have a hard coded key
-
由 Akira Matsuda 提交于
-
由 Aaron Patterson 提交于
avoid hash lookups and remove depency on the instance
-
由 Aaron Patterson 提交于
we don't need to repeat if statements
-
由 Aaron Patterson 提交于
now we only have to look up @scope[:scope_level] once per call to canonical_action? and we don't have a variable named "flag"
-
由 Aaron Patterson 提交于
since we pass `as` down, then we won't have to do an insert / delete dance with the options hash
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
UnexpectedError exceptions wrap the original exception, and the original exception may contain a reference to something that can't be marshal dumped which will cause the process to die.
-
由 Zachary Scott 提交于
[ci skip] add note about the ERB escape in generator docs
-
由 Aditya Kapoor 提交于
-
由 Santiago Pastorino 提交于
[ci skip] correct default cache store class
-
由 Akira Matsuda 提交于
-
由 Guo Xiang Tan 提交于
The test was not failing for `assert_template file: nil` when a file has been rendered.
-