| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / /
| | |
| | |
| | | |
move validation to AR
|
|\ \ \
| | | |
| | | | |
Fixed around callback with lambda example
|
|/ / /
| | |
| | | |
This is a follow up to issue #7535
|
| | |
| | |
| | |
| | |
| | | |
I have also chosen a variable name that matches the
parameter in the definition of load_missing_constant.
|
| | |
| | |
| | |
| | | |
Those who say source code should be without comments lie.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Basically, const_missing had a loop to try parent namespaces
if the constant lookup failed, but at the same time delegated
to load_missing_constant which in turn also walks up parent
namespaces calling const_missing by hand. In the case of missing
constants this results in repeated work in some funky nested way.
|
|\ \ \
| | | |
| | | | |
Allow delivery method options to be set per mail instance
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This will solve the issue that abort the connection transaction when we
skip the tests.
|
|\ \ \ \
| | | | |
| | | | | |
AR supporting new JSON data type on PostgreSQL >= 9.2
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This implements the support to encode/decode JSON
data to/from database and creating columns of type
JSON using a native type [1] supported by PostgreSQL
from version 9.2.
[1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
correct handling of changes in AR::Store, combine multiple store_accessors
|
| |/ / /
| | | |
| | | |
| | | | |
store_accessor
|
|\ \ \ \
| | | | |
| | | | | |
Fix pluck when columns/tables are reserved words.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | | |
seamusabshere/use-mysql-binary-for-rake-db-structure-load
Use the 'mysql' binary for 'rake db:structure:load'
|
| | | | |
| | | | |
| | | | |
| | | | | |
The previous implementation had the strange requirement that db/structure.sql contain only CREATE TABLE sql statements, one per table, separated by double newlines. SQLite3 and PostgreSQL database tasks, on the other hand, simply spawn 'sqlite3' and 'psql' binaries to load the file directly. The new implementation follows this and attempts to respect all current MySQL configuration settings.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This will trim down the API and avoid some error that can be made
changing the cache object.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We should not require all the core extensions inside the frameworks.
The logger is already defined in the Action View framework.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix for time type columns with invalid time value
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The string_to_dummy_time method was blindly parsing the dummy time string
with Date._parse which returns a hash for the date part regardless
of whether the time part is an invalid time string.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Modularize postgresql adapter
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix a typo in AD
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Add an optional block to HashWithIndifferentAccess#update and #merge
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
When a block is passed into the method, it will be invoked for each
duplicated key, with the key in question and the two values as
arguments. The value for the duplicated key in the receiver will
be set to the return value of the block.
This behaviour matches Ruby's long-standing implementation of
Hash#update and is intended to provide a more consistent interface.
HashWithIndifferentAccess#merge is also affected by the change, as it
uses #update internally.
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
Refactor `Mime::Type`
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
`parse` method performance improvements - ~27-33%:
accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, , pronto/1.00.00, sslvpn/1.00.00.00, */*"
Benchmark.measure{ 1_000_0.times { Mime::Type.parse(accept) }}
old: 1.430000 0.000000 1.430000 ( 1.440977)
new: 0.920000 0.000000 0.920000 ( 0.921813)
|
| |_|_|/ / /
|/| | | | |
| | | | | |
| | | | | | |
authoritative enough
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Allow routing concerns to accept a callable
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Also, add documentation for alternate usage.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This allows us to make alterations to the generated routes based on the
scope of the current mapper, and otherwise allows us to move larger
blocks of concerns out of the routes file, altogether.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
#{qualified_name}"
Users need to know the ultimate problem here is that AS was
trying to autoload a constant and it failed.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
custom inheritance_column test refactoring
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
All tests with a custom inheritance_column use the `Vegtable` model.
The field ruby_type on the Company models is no longer needed
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
previously the tests with and without a custom `inheritance_column`
used the same models. Since the model then has both fields this can lead
to false positives.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
#becomes works with configured inheritance_column
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
I had to create a new table because I needed an STI table,
which does not have both a "type" and a "custom_type"
the test fails with:
1) Error:
test_alt_becomes_works_with_sti(InheritanceTest):
NoMethodError: undefined method `type=' for #<Cabbage id: 1, name: "my cucumber", custom_type: "Cucumber">
/Users/username/Projects/rails/activemodel/lib/active_model/attribute_methods.rb:432:in `method_missing'
/Users/username/Projects/rails/activerecord/lib/active_record/attribute_methods.rb:100:in `method_missing'
/Users/username/Projects/rails/activerecord/lib/active_record/persistence.rb:165:in `becomes'
test/cases/inheritance_test.rb:134:in `test_becomes_works_with_sti'
test/cases/inheritance_test.rb:140:in `test_alt_becomes_works_with_sti'
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fixed markup in Upgrading RoR guide [ci skip]
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
There are two changes:
- Using <ruby> syntax for unicode character routes example instead of
<tt> since it causes single quotes to be transformed into inverted
commas. This makes this required change more eye-catching.
- Using <tt> for the j alias and related helpers as written in the
documentation guidelines.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fix example code: use tasks instead of comments [ci skip]
|
|/ / / / / |
|
|\ \ \ \ \
| |_|_|_|/
|/| | | | |
Properly reset the session on reset_session
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Use load_for_write! to ensure a refresh of the session object.
This way the new session_id and the empty data will be stored properly.
E.g. in the case of the session cookie store this means that a new
digest will be returned to the user.
|
| | | | | |
|