- 30 12月, 2014 8 次提交
-
-
由 Sean Griffin 提交于
This is no longer required now that we are injecting a type caster object into the Arel table, with the exception of uniqueness validations. Since it calls `ConnectionAdapter#type_cast`, the value has already been cast for the database. We don't want Arel to attempt to cast it further, so we need to continue wrapping it in a quoted node. This can potentially go away when this validator is refactored to make better use of `where` or the predicate builder.
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
This API will require much less consuming code to change to accomodate the removal of automatic type casting from Arel. As long as the predicates are constructed using the `arel_table` off of an AR subclass, there will be no changes that need to happen.
-
由 Rafael Mendonça França 提交于
`eager_load` preserves readonly flag for associations
-
由 Rafael Mendonça França 提交于
It is already docummented at persistence.rb. [ci skip]
-
由 Takashi Kokubun 提交于
-
- 29 12月, 2014 13 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Fix html_safe string access modifying frozen values
-
由 Vipul A M 提交于
When trying to access a character on a string buffer object via `:[]`, if the object being accessed currently returns `html_safe?` as true, we used to set `@html_safe` variable as true on new object created. When doing something like x = 'Hello'.html_safe x[/a/, 1] would throw an error on ruby 2.2, since when nothign gets matched nil is returned by the code and it tries to set `@html_safe` value to true, which would error since starting 2.2 nil is frozen. This change adds a safety net to avoid setting `@html_safe = true` on frozen objects. Fixes #18235
-
由 Yves Senn 提交于
adjust args of Bundler.require in guides [ci skip]
-
由 Yosuke 提交于
Arguments of Bundler.require of generator has been changed from rails4.0.4. https://github.com/rails/rails/blob/v4.0.4/railties/lib/rails/generators/rails/app/templates/config/application.rb#L16
-
由 Guillermo Iguaran 提交于
Expectation comes first
-
由 Yukio Mizuta 提交于
-
由 Robin Dupret 提交于
-
由 Guillermo Iguaran 提交于
Require Ruby 2.2 for Rails 5.0
-
由 Sean Griffin 提交于
Actually autoload all second-level directories called `app/*/concerns`
-
由 Yves Senn 提交于
-
由 Sean Griffin 提交于
Update example test documentation
-
由 Ben Prew 提交于
Example does not work with session headers, should use request headers. [ci skip]
-
- 28 12月, 2014 10 次提交
-
-
由 Guillermo Iguaran 提交于
Fix warning: `*' interpreted as argument prefix
-
由 Ryuta Kamizono 提交于
-
由 Sean Griffin 提交于
Provide :touch option to save() to accommodate saving without updating t...
-
由 Dan Olson 提交于
-
由 Sean Griffin 提交于
We only support classes which provide a no-args constructor to use as a default value. We can provide a more helpful error message if we catch this when `serialize` is called, rather than letting it error when you try to assign the attribute. Fixes #18224
-
由 Sean Griffin 提交于
Add bigint primary key support for MySQL.
-
由 Ryuta Kamizono 提交于
Example: create_table :foos, id: :bigint do |t| end
-
由 Ryuta Kamizono 提交于
-
由 Yves Senn 提交于
/cc @sgrif
-
由 Yves Senn 提交于
Most of the documentation very closely mirrors the matching docs from `SchemaStatements`. I reduced duplicated copy and added links to the underlying methods for the user to follow.
-
- 27 12月, 2014 9 次提交
-
-
由 Aditya Kapoor 提交于
[ci skip]
-
由 Sean Griffin 提交于
Refactor `PostgreSQL::TableDefinition#primary_key`
-
由 Ryuta Kamizono 提交于
Because call the `column` method and set the `options[:primary_key]` is handled at `super`, here need only treat the `options[:default]`.
-
由 Alex Robbin 提交于
-
由 Sean Griffin 提交于
Part of the larger refactoring to remove type casting from Arel. We can inform it that we already have the right type by wrapping the value in an `Arel::Nodes::Quoted`. This commit can be reverted when we have removed type casting from Arel in Rail 5.1
-
由 Sean Griffin 提交于
Part of the larger refactoring to remove type casting from Arel. We can inform it that we already have the right type by wrapping the value in an `Arel::Nodes::Quoted`. This commit can be reverted when we have removed type casting from Arel in Rail 5.1
-
由 Sean Griffin 提交于
Part of the larger refactoring to remove type casting from Arel. We can inform it that we already have the right type by wrapping the value in an `Arel::Nodes::Quoted`. This commit can be reverted when we have removed type casting from Arel in Rail 5.1
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
Part of a larger refactoring to remove type casting behavior from Arel
-