Pratik Naik
267d3964eb
Make sure render :collection doesnt set nil local when :as is absent
2008-07-02 17:19:41 +01:00
Luca Guidi
7403c825a0
Fixed Date and Time localization for ActiveSupport
2008-07-02 17:51:34 +02:00
Pratik Naik
2b43620e3c
Add :as option to render a collection of partials with a custom local variable name. [ #509 state:resolved] [Simon Jefford, Pratik Naik]
2008-07-02 16:40:42 +01:00
Pratik Naik
4f75840d72
Add Inflection rules for String#humanize. [ #535 state:resolved] [dcmanges]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 13:25:36 +01:00
Tim Pope
3a95ee73cf
Make rake test:uncommitted work with Git.
...
Note : rake test:uncommitted is considering only unstaged files.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 05:21:59 +01:00
Tim Haines
f5052dd8a3
Make sure render :template works with :locals. [ #524 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 04:30:34 +01:00
Joshua Peek
aff2d33172
Improved test coverage and added RackRequest support for CGI environment variables.
2008-07-01 21:53:55 -05:00
Carl Porth
a81f16af31
Ensure Rails::Generator quotes file names while generating diff. [ #264 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 03:28:02 +01:00
Pratik Naik
474d425382
Ensure AssociationCollection#size considers all unsaved record. [ #305 state:resolved] [sds]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 03:17:33 +01:00
Scott Stewart
7378e23734
Ensure proper output when submit_tag is used with :disabled_with. [ #388 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-07-02 01:39:30 +01:00
Luca Guidi
6982acb079
Experimental I18n charset support for ActionMailer
2008-07-01 16:52:48 +02:00
gbuesing
6f1d827096
TimeWithZone#advance: treat :weeks option as variable-length
2008-06-29 15:28:34 -05:00
gbuesing
676d6a6514
TimeWithZone: when crossing DST boundary, treat Durations of days, months or years as variable-length, and all other values as absolute length. A time + 24.hours will advance exactly 24 hours, but a time + 1.day will advance 23-25 hours, depending on the day. Ensure consistent behavior across all advancing methods.
2008-06-29 15:21:40 -05:00
rick
01db5ded54
Merge branch 'state_machine'
...
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.
2008-06-29 12:13:58 -07:00
gbuesing
4cf93935b2
Fix indentation and update changelogs for previous commit
2008-06-29 13:46:07 -05:00
Ernie Miller
d0092dc44d
Added support for regexp matching of priority zones in time_zone_select [ #195 state:resolved]
2008-06-29 13:37:07 -05:00
Pratik Naik
029a745584
Ensure FormBuilder date helpers respects html_options. [ #506 state:resolved] [Pascal Ehlert]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-29 00:36:31 +01:00
rick
c9e366e997
all aasm tests without activerecord moved over and passing
2008-06-28 11:33:50 -07:00
rick
a9d9ca16c7
converted tests for more complex state transitions
2008-06-28 11:01:40 -07:00
rick
74cb056986
add basic events and transitions. still more tests to convert
2008-06-28 09:19:44 -07:00
rick
b9528ad3c5
initial statemachine machine and state classes
2008-06-28 00:55:02 -07:00
rick
b7c6ceff9a
tweak activemodel load order a bit
2008-06-27 23:29:47 -07:00
rick
aec3c7aa72
add special requires for ActiveSupport::Inflector so you can load it individually
2008-06-27 23:29:25 -07:00
rick
7fc628e3fc
convert specs to tests
2008-06-27 23:29:03 -07:00
Tim Chater
1415df8f49
Dirty: recognize when an integer changes from zero to blank. [ #433 state:resolved]
2008-06-27 21:31:06 -07:00
Pratik Naik
9a25315076
Add extra hash conditions tests for named_scope
2008-06-28 01:57:32 +01:00
Pratik Naik
cd994eff9a
Allow conditions on multiple tables to be specified using hash.
...
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.
2008-06-28 01:27:51 +01:00
Jeremy Kemper
582bff71c4
Fix typo in apparently-dead will_unload? method.
2008-06-27 17:21:57 -07:00
Pratik Naik
76e00fc784
Ensure observer test inherits from ActiveSupport::TestCase
2008-06-27 18:18:39 +01:00
Pat George
4ddca325ee
Warn and uses singularized ModelName if a plural ModelName is given to script/generate. Override with --force-plural. [ #333 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-27 16:35:26 +01:00
Luca Guidi
66c2508ebb
Make sure mocha is available
2008-06-27 15:00:55 +02:00
Cheah Chu Yeow
3c1e8ab0fe
Allow single quote (the ' character) in the middle of URL when auto_link-ing. [ #471 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-27 13:46:17 +01:00
Jeremy Kemper
4498aad4ac
MySQL: treat integer with :limit => 11 as a display width, not byte size, for backward-compatibility.
2008-06-27 01:07:22 -07:00
Jan De Poorter
b2b761166d
Make sure associated has_many/habtm objects get saved even when :validate => false is used. [ #486 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-06-27 03:02:13 +01:00
Pratik Naik
5ca7d01eca
Cache sanitized conditions in reflection object for associations
2008-06-27 02:47:38 +01:00
Andre Arko
0b12da44aa
Extract owner_quoted_id so it can be overridden. [ #292 state:committed]
2008-06-25 19:04:09 -07:00
Bob Klosinski
a93ea88c06
Added Thin support to script/server. [ #488 state:resolved]
2008-06-25 18:56:52 -07:00
Jeremy Kemper
24c7f41b4f
Freeze ModelName cache_key also
2008-06-25 18:55:55 -07:00
Jeremy Kemper
c397260577
Performance: minor Column#text? and #number? speedups
2008-06-25 18:55:55 -07:00
Joshua Peek
339491a6b3
Set precompiled fixture load path constant to speed up tests
2008-06-25 15:24:12 -05:00
Joshua Peek
a9259ccfe0
Hide InlineTemplate class from ActionController and use ActionView's render API
2008-06-25 06:04:06 -05:00
Joshua Peek
ad772402c4
Made ActionView::Base#render_file private
2008-06-25 05:57:24 -05:00
Joshua Peek
6f5327013d
Consolidate CustomHandlerTest, TemplateFileTest, and TemplateObjectTest and test them at a higher level of abstraction in ViewRenderTest.
2008-06-25 05:49:38 -05:00
Jimmy Baker
670e22e372
Patched HTML::Document#initialize call to Node.parse so that it includes the strict argument. [ #330 ]
2008-06-24 23:11:35 -07:00
Jeremy Kemper
071fe79279
Include cache key in ModelName
2008-06-24 22:07:09 -07:00
Jeremy Kemper
6874caa407
Performance: minor Array#to_param and #to_query speedups
2008-06-24 21:49:49 -07:00
Jeremy Kemper
69e72af622
Improve readability
2008-06-24 11:53:49 -07:00
Jeremy Kemper
f6520b7dc7
Test for tinyint
2008-06-23 23:42:06 -07:00
Jeremy Kemper
b409474325
link_to_function and button_to_function shouldn't modify their options hashes
2008-06-23 23:41:21 -07:00
Jeremy Kemper
290e1e2fc5
Treat any limit > 4 as bigint
2008-06-23 18:16:03 -07:00