- 07 11月, 2013 9 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Xavier Noria 提交于
Add +capitalize+ option to Inflector.humanize
-
由 claudiob 提交于
So strings can be humanized without being capitalized: 'employee_salary'.humanize # => "Employee salary" 'employee_salary'.humanize(capitalize: false) # => "employee salary"
-
由 Rafael Mendonça França 提交于
rdoc: favicon source shouldn't begin with a slash to reference asset pipeline resource [ci skip] Conflicts: actionview/lib/action_view/helpers/asset_tag_helper.rb
-
由 Jeremy Kemper 提交于
Eliminate `JSON.{parse,load,generate,dump}` and `def to_json`
-
- 06 11月, 2013 10 次提交
-
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Godfrey Chan 提交于
JSON.{dump,generate} offered by the JSON gem is not compatiable with Rails at the moment and can cause a lot of subtle bugs when passed certain data structures. This changed all direct usage of the JSON gem in internal Rails code to always go through AS::JSON.{decode,encode}. We also shouldn't be implementing `to_json` most of the time, and these occurances are replaced with an equivilent `as_json` implementation to avoid problems down the road. See [1] for all the juicy details. [1]: intridea/multi_json#138 (comment)
-
由 Carlos Antonio da Silva 提交于
-
由 Jeremy Kemper 提交于
Fixed Object#as_json and Struct#as_json with options
-
由 Godfrey Chan 提交于
These methods now takes the same options as Hash#as_json, for example: struct = Struct.new(:foo, :bar).new struct.foo = "hello" struct.bar = "world" json = struct.as_json(only: [:foo]) # => {foo: "hello"} This is extracted from PR #11728 from @sergiocampama, see also the discussion in #11460.
-
由 Yves Senn 提交于
This allows to assign both `String` and `Symbol` values to the enum without having to call `to_sym`, which is a security problem.
-
由 Yves Senn 提交于
-
由 Rafael Mendonça França 提交于
Clarify HTML Safe Translations
-
由 Derek Prior 提交于
I think it's confusing to say "Use them in views without escaping." We use all keys in views without escaping - the escaping is done for us automatically _unless_ we call html_safe or the key ends in _html.
-
- 05 11月, 2013 15 次提交
-
-
由 Yves Senn 提交于
-
由 Rafael Mendonça França 提交于
Renamed generated_feature_methods to generated_association_methods. Conflicts: activerecord/lib/active_record/associations/builder/association.rb activerecord/lib/active_record/associations/builder/singular_association.rb activerecord/test/cases/base_test.rb
-
由 Rafael Mendonça França 提交于
-
由 Guillermo Iguaran 提交于
Use 1.9 Hash syntax consistently
-
由 Pablo Torres 提交于
-
由 Yves Senn 提交于
Refactor File.expand_path usage to remove additional File.join
-
由 Alex Johnson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
- 04 11月, 2013 6 次提交
-
-
由 Carlos Antonio da Silva 提交于
Commit 6e4a810f changed the implementation from class_eval to define_method, but missed the access to the constant versus the access to the constant name.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Remove extra whitespace
-
由 Carlos Antonio da Silva 提交于
Reuse the already existing logic used for grabbing this information from the updated columns.
-
由 Carlos Antonio da Silva 提交于
-