aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'state_machine'rick2008-06-2922-167/+1078
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Some big changes: * Added some redundant requires so active_support/inflecto can be loaded without the rest of ActiveSupport. * Disabled callbacks and validations until they are added and tested. * Converted specs back to tests, using ActiveSupport::TestCase and the new #test helper. * As an experiment, I imported Scott Barron's awesome AASM gem into ActiveModel. I added multiple state machine support and vastly improved the API (no more aasm_* prefixes). All the old tests pass. If this bothers people, I have no problems removing this and contributing the changes back to AASM. I just feel like AMo is a better spot for all these 'modelish' features.
| * all aasm tests without activerecord moved over and passingrick2008-06-285-59/+76
| |
| * converted tests for more complex state transitionsrick2008-06-285-123/+142
| |
| * add basic events and transitions. still more tests to convertrick2008-06-2810-108/+395
| |
| * initial statemachine machine and state classesrick2008-06-2810-6/+571
| |
| * tweak activemodel load order a bitrick2008-06-277-30/+39
| |
| * add special requires for ActiveSupport::Inflector so you can load it ↵rick2008-06-271-0/+5
| | | | | | | | individually
| * convert specs to testsrick2008-06-274-137/+146
| |
* | Fix indentation and update changelogs for previous commitgbuesing2008-06-293-2/+6
| |
* | Added support for regexp matching of priority zones in time_zone_select ↵Ernie Miller2008-06-294-2/+40
| | | | | | | | [#195 state:resolved]
* | Ensure FormBuilder date helpers respects html_options. [#506 state:resolved] ↵Pratik Naik2008-06-292-11/+58
| | | | | | | | | | | | [Pascal Ehlert] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Dirty: recognize when an integer changes from zero to blank. [#433 ↵Tim Chater2008-06-272-1/+30
| | | | | | | | state:resolved]
* | Add extra hash conditions tests for named_scopePratik Naik2008-06-282-0/+5
| |
* | Allow conditions on multiple tables to be specified using hash.Pratik Naik2008-06-283-9/+37
| | | | | | | | | | | | | | | | | | Examples: User.all :joins => :items, :conditions => { :age => 10, :items => { :color => 'black' } } Item.first :conditions => { :items => { :color => 'red' } } Note : Hash key in :conditions is referring to the actual table name or the alias defined in query.
* | Fix typo in apparently-dead will_unload? method.Jeremy Kemper2008-06-271-1/+1
| |
* | Ensure observer test inherits from ActiveSupport::TestCasePratik Naik2008-06-271-1/+1
| |
* | Warn and uses singularized ModelName if a plural ModelName is given to ↵Pat George2008-06-272-1/+50
| | | | | | | | | | | | script/generate. Override with --force-plural. [#333 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Allow single quote (the ' character) in the middle of URL when ↵Cheah Chu Yeow2008-06-272-1/+2
| | | | | | | | | | | | auto_link-ing. [#471 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | MySQL: treat integer with :limit => 11 as a display width, not byte size, ↵Jeremy Kemper2008-06-274-21/+29
| | | | | | | | for backward-compatibility.
* | Make sure associated has_many/habtm objects get saved even when :validate => ↵Jan De Poorter2008-06-272-8/+30
| | | | | | | | | | | | false is used. [#486 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Cache sanitized conditions in reflection object for associationsPratik Naik2008-06-272-1/+5
| |
* | Extract owner_quoted_id so it can be overridden. [#292 state:committed]Andre Arko2008-06-255-11/+15
| |
* | Added Thin support to script/server. [#488 state:resolved]Bob Klosinski2008-06-253-2/+39
| |
* | Freeze ModelName cache_key alsoJeremy Kemper2008-06-251-1/+1
| |
* | Performance: minor Column#text? and #number? speedupsJeremy Kemper2008-06-251-2/+2
| |
* | Set precompiled fixture load path constant to speed up testsJoshua Peek2008-06-2516-193/+183
| |
* | Hide InlineTemplate class from ActionController and use ActionView's render APIJoshua Peek2008-06-252-8/+6
| |
* | Made ActionView::Base#render_file privateJoshua Peek2008-06-258-28/+30
| |
* | Consolidate CustomHandlerTest, TemplateFileTest, and TemplateObjectTest and ↵Joshua Peek2008-06-256-254/+142
| | | | | | | | test them at a higher level of abstraction in ViewRenderTest.
* | Patched HTML::Document#initialize call to Node.parse so that it includes the ↵Jimmy Baker2008-06-242-1/+26
| | | | | | | | strict argument. [#330]
* | Include cache key in ModelNameJeremy Kemper2008-06-242-6/+7
| |
* | Performance: minor Array#to_param and #to_query speedupsJeremy Kemper2008-06-241-2/+3
| |
* | Improve readabilityJeremy Kemper2008-06-242-9/+13
| |
* | Test for tinyintJeremy Kemper2008-06-232-2/+2
| |
* | link_to_function and button_to_function shouldn't modify their options hashesJeremy Kemper2008-06-231-2/+2
| |
* | Treat any limit > 4 as bigintJeremy Kemper2008-06-231-6/+8
| |
* | Allow script/about to run in production mode instead of failing with a ↵Cheah Chu Yeow2008-06-233-1/+5
| | | | | | | | | | | | cryptic const_missing error. [#370 state:resolved]
* | Revert "Check for mocha gem without requiring the lib. [#403 state:resolved]"Jeremy Kemper2008-06-231-2/+2
| | | | | | | | This reverts commit 4d5ac3f3d2e1667971752c9a4e536de1a5bec364.
* | Check for mocha gem without requiring the lib. [#403 state:resolved]Jeremy Kemper2008-06-221-2/+2
| |
* | Always treat integer :limit as byte length. [#420 state:resolved]Tarmo Tänav2008-06-226-16/+81
| |
* | Partial updates don't update lock_version if nothing changed. [#426 ↵Daniel Morrison2008-06-224-0/+42
| | | | | | | | state:resolved]
* | Fix column collision with named_scope and :joins. [#46 state:resolved]Mark Catley2008-06-225-3/+39
| |
* | Fixed polymorphic_url to be able to handle singleton resources.Tammer Saleh2008-06-223-12/+60
| | | | | | | | | | | | | | Example usage: polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post) [#461 state:resolved]
* | Oops, already had a postgresql_version method!Jeremy Kemper2008-06-221-6/+1
| |
* | Only use DROP ... IF EXISTS for PostgreSQL 8.2 or later. [#400 state:resolved]ian2008-06-221-1/+9
| |
* | ActiveRecord::Migrator#run records version-state after migrating. [#369 ↵Michael Raidel2008-06-223-11/+21
| | | | | | | | state:resolved]
* | Fixed that scopes defined with a string name could not be composedTarmo Tänav2008-06-223-0/+8
| |
* | nix extra newlineJeremy Kemper2008-06-221-2/+1
| |
* | Changelog for 509374eJeremy Kemper2008-06-221-0/+3
| |
* | Named bind variables can now be used with postgresql-style typecastsTarmo Tänav2008-06-222-3/+11
| | | | | | | | | | For example :conditions => ['stringcol::integer = :var', { :var => 10 }] will no longer raise an exception about ':integer' having a missing value.