When typecasting an array of integers, if the value happens to be provided as strings (in forms for example), quote_and_escape will receive a Numeric and try gsubing on it.
This fixes it, returning the value without modifying it.
…
The build is broken: https://travis-ci.org/rails/rails/builds/15824530
This commit fixes it.
The problem: Sqlite expects the database part to be an absolute path. That prompted this change to be committed to master: https://githu…
Enable memcached service on travis for running cache tests.
Not sure, if its intentional not to run the service.
Also http://about.travis-ci.org/blog/2013-11-18-upcoming-build-environment-updates/ states the service is not
started…
For models with serialized attributes, store the hash code for attributes.
Only save columns to database if the hash of the column changes.
This is in response to rails#8328
Currently if you attempt to use a database that does not exist you get an error:
PG::ConnectionBad FATAL: database "db_error" does not exist
The solution is easy, create and migrate your database however new developers …
Currently, serialized attributes are saved to the database on every save.
This change introduces safe_serialized_attributes which will turn this behavior off.
If serialized attribtues are changed inplace, then the user can use `a…
Finding sass-rails version is 4.0.0.rc1 when I create new app by rails new in Rails 4.1.0.beta1.
Rails 4.0.0 already use sass-rails version 4.0.0.
So just change sass-rails version 4.0.0 instead of 4.0.0.rc1.
By default when creating a project with --database=postgresql the config/database.yml file that is generated has a user specified that is the same as the app name
development:
adapter: postgresql
encoding: unicode
da...
Need to check if value also respond_to :id before calling it, otherwise
things could 💣 .
see #13410 for more context.
review @rafaelfranca
We're surrounding the options in angle brackets <> as is convention in curl:
$ curl --help
Usage: curl [options...] <url>
And then in square brackets [] with bars | as in tar:
$ tar --help
...
Cre...
The whole point of the config/secrets.yml file was to remove sensitive information from the repository. If it is not ignored (at least by default), sensitive information could still leak accidentally if developers forget to add this wh…
Assigning nil to a polymorphic belongs_to should nullify its _type column
Fixes failing test introduced at c141dfc838a5dca9f197814410fa5d44c143129c by @jeremy
Update the docs in favor to use config/secrets.yml for store secret_key_base ref #13298
By default config.assets.raise_runtime_errors should be set to true in development for new apps.