aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* to_xml with :include should skip_instruct on the included records [#4506 ↵Lawrence Pit2010-04-303-2/+11
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* removing the extra assignment statement [#4432 state:resolved]Neeraj Singh2010-04-301-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* test cases for record.to_xml [#458 state:resolved]Neeraj Singh2010-04-304-0/+28
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Updated the generators guide.José Valim2010-04-301-20/+14
|
* Update generators to use thor 0.13.6 with simpler source_root handling.José Valim2010-04-306-32/+30
|
* Reorganize the mailer generator a bit.José Valim2010-04-304-2/+2
|
* Update after_commit and after_rollback docs and tests to use new style API ↵Brian Durand2010-04-292-11/+6
| | | | | | | | with an :on options instead of on_* suffix. [#2991] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Move ActionMailer generator to AMCarlhuda2010-04-295-2/+7
|
* Update thor dependency to 0.13.5José Valim2010-04-292-2/+2
|
* Add after_commit and after_rollback callbacks to ActiveRecord that are ↵Brian Durand2010-04-295-28/+466
| | | | | | | | called after transactions either commit or rollback on all records saved or destroyed in the transaction. [#2991 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix docs typo: app.middlewares -> app.middlewareJeremy Kemper2010-04-291-1/+1
|
* Add missing deprecation requiresJeremy Kemper2010-04-293-0/+3
|
* making rake:migrate VERSION=0 a noop called in succession. [#2137 ↵Neeraj Singh2010-04-292-3/+26
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix form builder and form helpers inconsistencies [#4432 state:resolved]Neeraj Singh2010-04-293-64/+115
| | | | | | | | * datetime_select and select_datetime should be consistent as much as possible * date_select and select_date should be consistent as much as possible * time_select and select_time should be consistent as much as possible Signed-off-by: José Valim <jose.valim@gmail.com>
* ActiveRecord middlewares should be inserted before AD::Cascade [#4493 ↵José Valim2010-04-293-11/+6
| | | | state:resolved].
* warn user if options are given before application name [#3435 state:resolved]Ravinder Singh2010-04-292-0/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* ActionCachingTestController rescues from all exceptions. Making sure that ↵Neeraj Singh2010-04-292-1/+32
| | | | | | all the tests check for valid response. [#4468 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-2913-336/+255
| | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
* Ops. Rename performance to profiler.José Valim2010-04-291-1/+1
|
* array.to_xml should be able to handle all types of data elements [#4490 ↵Neeraj Singh2010-04-297-72/+84
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-2912-78/+90
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Fix eager loading of associations causing table name collisionsErnie Miller2010-04-284-49/+111
| | | | | | [#4463 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* object_id may be negative, producing an invalid symbol. h/t Markus SchirpJeremy Kemper2010-04-281-1/+1
|
* Fix failing test.José Valim2010-04-282-1/+1
|
* failing test for: validates_acceptance_of overrides database fieldsSantiago Pastorino2010-04-281-0/+33
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Makes validates_acceptance_of to not override database fields [#4460 ↵Santiago Pastorino2010-04-283-2/+11
| | | | | | state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge commit 'rails/master'Xavier Noria2010-04-28121-1408/+2408
|\
| * Bundle json and yajl-ruby gems for AS::JSON testingJeremy Kemper2010-04-281-0/+3
| |
| * Fix BigDecimal JSON encoding test. [#4495 state:resolved]Cezary Baginski2010-04-281-3/+3
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Fix prototype grep depending on JSON encoding regexp as JavaScript regexpJeremy Kemper2010-04-271-1/+1
| |
| * Destroy respects optimistic locking.Curtis Hawthorne2010-04-274-5/+94
| | | | | | | | | | | | | | | | | | | | Now works with :dependent => :destroy and includes unit tests for that case. Also includes better error messages when updating/deleting stale objects. [#1966 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Only run load hooks once a file has been fully loaded.Nathan Weizenbaum2010-04-272-4/+3
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Switch driver to pg. [#3635 state:resolved]Jeremy Kemper2010-04-271-5/+5
| |
| * ActiveSupport::Cache refactoringBrian Durand2010-04-279-509/+1403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All Caches * Add default options to initializer that will be sent to all read, write, fetch, exist?, increment, and decrement * Add support for the :expires_in option to fetch and write for all caches. Cache entries are stored with the create timestamp and a ttl so that expiration can be handled independently of the implementation. * Add support for a :namespace option. This can be used to set a global prefix for cache entries. * Deprecate expand_cache_key on ActiveSupport::Cache and move it to ActionController::Caching and ActionDispatch::Http::Cache since the logic in the method used some Rails specific environment variables and was only used by ActionPack classes. Not very DRY but there didn't seem to be a good shared spot and ActiveSupport really shouldn't be Rails specific. * Add support for :race_condition_ttl to fetch. This setting can prevent race conditions on fetch calls where several processes try to regenerate a recently expired entry at once. * Add support for :compress option to fetch and write which will compress any data over a configurable threshold. * Nil values can now be stored in the cache and are distinct from cache misses for fetch. * Easier API to create new implementations. Just need to implement the methods read_entry, write_entry, and delete_entry instead of overwriting existing methods. * Since all cache implementations support storing objects, update the docs to state that ActiveCache::Cache::Store implementations should store objects. Keys, however, must be strings since some implementations require that. * Increase test coverage. * Document methods which are provided as convenience but which may not be universally available. MemoryStore * MemoryStore can now safely be used as the cache for single server sites. * Make thread safe so that the default cache implementation used by Rails is thread safe. The overhead is minimal and it is still the fastest store available. * Provide :size initialization option indicating the maximum size of the cache in memory (defaults to 32Mb). * Add prune logic that removes the least recently used cache entries to keep the cache size from exceeding the max. * Deprecated SynchronizedMemoryStore since it isn't needed anymore. FileStore * Escape key values so they will work as file names on all file systems, be consistent, and case sensitive * Use a hash algorithm to segment the cache into sub directories so that a large cache doesn't exceed file system limits. * FileStore can be slow so implement the LocalCache strategy to cache reads for the duration of a request. * Add cleanup method to keep the disk from filling up with expired entries. * Fix increment and decrement to use file system locks so they are consistent between processes. MemCacheStore * Support all keys. Previously keys with spaces in them would fail * Deprecate CompressedMemCacheStore since it isn't needed anymore (use :compress => true) [#4452 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * use ordinary syntax for options to be well-formed in 1.8Xavier Noria2010-04-271-1/+1
| |
| * JSON: encode objects that don't have a native JSON representation using ↵Jeremy Kemper2010-04-263-7/+43
| | | | | | | | to_hash, if available, instead of instance_values (the old fallback) or to_s (other encoders' default). Encode BigDecimal and Regexp encode as strings to conform with other encoders. Try to transcode non-UTF-8 strings.
| * Update CHANGELOG for include_root_in_json.Jeremy Kemper2010-04-261-0/+5
| |
| * Reuse Active Model serialization in Active Resource. [#2584 state:committed]Santiago Pastorino2010-04-262-69/+25
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Use explicit source encoding rather than forced UTF-8 from US-ASCII.Santiago Pastorino2010-04-264-5/+4
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [#4477 state:resolved]Anil Wadghule2010-04-269-9/+17
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Make db console work for all versions of ruby on Windows.unknown2010-04-261-1/+2
| | | | | | | | | | | | [#3999 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * extract ActionController::TestCase::BehaviorDavid Chelimsky2010-04-261-126/+133
| | | | | | | | | | | | | | | | | | | | - this makes it possible for other test frameworks to hook into testing facilities provided by Rails without having to subclass AC::TestCase. [#4474 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * No need to require test and rdoc tasks.José Valim2010-04-261-3/+0
| |
| * Ensure application rake tasks and generators are loaded after the ones ↵José Valim2010-04-264-2/+29
| | | | | | | | specified in railties/engines/rails. [#4471 state:resolved]
| * Refactor tests by moving all middleware tests to the same place.José Valim2010-04-264-120/+117
| |
| * Revert "create option to include_root_in_json for ActiveResource [#2584 ↵Jeremy Kemper2010-04-252-32/+6
| | | | | | | | | | | | | | | | | | | | state:committed]" This reverts commits 72f89b5d971b48a133c4c0af56fbeda35d738dae, 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972. Should reuse Active Model. [#2584 state:incomplete]
| * Action Pack: fix tests with -K*, work around Ruby 1.9.1 constant lookup.Cezary Baginski2010-04-253-6/+6
| | | | | | | | | | | | [#4473 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Support fixtures for namespaced models [#2965 state:resolved]Andrew White2010-04-259-7/+45
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * Fix validates_numericaly_of only integer error message [#4406 state:resolved]reu2010-04-253-20/+28
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * allow unsubscribe by name or subscription [#4433 state:resolved]David Chelimsky2010-04-243-5/+38
| | | | | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>