Commit Graph

20375 Commits

Author SHA1 Message Date
Xavier Noria 74188cbff4 upgrades RedCloth dependency to ~> 4.2, adds RedCloth to the project's Rakefile, removes gem call from the guides generator (use bundle exec if needed) 2011-01-12 21:12:44 +01:00
Xavier Noria 37bd45f893 upgrades to RDoc ~> 3.4 and removes the gem call in root Rakefile (use bundle exec if needed) 2011-01-12 20:59:31 +01:00
Krekoten' Marjan 366e7854ac Refactor to handle the X-Cascade without having to raise an exception 2011-01-09 16:08:54 -08:00
Kevin Moore 3e2465521b Aligning master changelog w/ 3-0-stable 2011-01-09 16:07:25 -08:00
Jakub Kuźma 5106ce88e4 authenticity_token option for form_tag [#2988 state:resolved] 2011-01-09 15:55:26 -08:00
John Allison 5d1d9bfb05 Improve select helpers by allowing a selected value of false. This is useful when using a select helper with a boolean attribute, and the attribute is false. (e.g. f.select :allow_comments) 2011-01-09 15:45:55 -08:00
Katrina Owen 4690bee301 Adding postgresql template option when executing db:test:clone_structure
Specify the template to use in config/database.yml, e.g.

  test:
    adapter: postgresql
    template: template_postgis

If no template is specified, postgresql defaults to template1
2011-01-09 15:35:47 -08:00
Rizwan Reza 18605adec3 HTML5 button_tag helper
This tag is similar in nature to submit_tag, but allows more control.
It also doesn't submit if submit type isn't used, allowing JavaScript to
control the flow where required.

For more information: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-button-element
2011-01-09 15:22:23 -08:00
Santiago Pastorino 2b2b50660b Bump up bcrypt-ruby dependency to 2.1.4 2011-01-09 19:04:43 -02:00
Santiago Pastorino 75e89ed68e Initialize these options as false if they are not given 2011-01-09 16:54:03 -02:00
Santiago Pastorino 14198d84a9 Remove InstanceTagMethods module and define the methods inside the InstanceTag class 2011-01-09 13:35:38 -02:00
Aaron Patterson 12f5158f09 remove unused string substitution 2011-01-08 20:15:15 -08:00
Aaron Patterson 3b677aa006 use select_all because not all database adapters support bind values 2011-01-08 19:59:31 -08:00
Aaron Patterson ec960c3730 join the cult of cargo. reduce the number of NoMethodErrors in the system 2011-01-07 18:45:30 -08:00
Aaron Patterson 36d7bd1898 stop creating intermediate AR objects, just construct AR objects from a list of hashes 2011-01-07 18:45:17 -08:00
Aaron Patterson 84f81f5779 no need for to_sym 2011-01-07 16:50:44 -08:00
Aaron Patterson 33ebf9bd56 String#insert() mutates the string, so no need for lasgn 2011-01-07 16:27:34 -08:00
Aaron Patterson 1e2ab564f9 fewer funcalls to the cached attributes variable 2011-01-07 16:27:34 -08:00
Jeremy Kemper 63ed6ca998 Add test for e0e3adf 2011-01-07 16:25:25 -08:00
Jon Leighton 82b0ce9c97 Refactor HasOneAssociation#replace 2011-01-07 15:03:16 -08:00
Jon Leighton 5b28e52542 Don't not remove double negatives 2011-01-07 15:03:16 -08:00
Jon Leighton d23c332e02 Clean up create, create! and build in HasOneAssociation 2011-01-07 15:03:15 -08:00
Jon Leighton 5ecf692248 merge_with_conditions is not necessary because the conditions will already be in the scope_for_create hash in the scope 2011-01-07 15:03:15 -08:00
Jon Leighton 45d0d18bae Not really worth having the HasAssociation module for just a single method 2011-01-07 15:03:15 -08:00
Jon Leighton 770e6893b9 Construct an actual ActiveRecord::Relation object for the association scope, rather than a hash which is passed to apply_finder_options. This allows more flexibility in how the scope is created, for example because scope.where(a, b) and scope.where(a).where(b) mean different things. 2011-01-07 15:03:15 -08:00
Jon Leighton 441118458d Use encode_with for marshalling 2011-01-07 15:03:15 -08:00
Aaron Patterson 2efd780dcb send() will raise an ArgumentError, so we should leverage ruby 2011-01-07 14:30:20 -08:00
Aaron Patterson 6e63e7a874 no need for parens 2011-01-07 14:10:46 -08:00
Aaron Patterson 344a2d5adc use a hash for caching aggregations rather than ivars 2011-01-07 13:53:34 -08:00
Aaron Patterson f3d92f0756 method is never called with arguments 2011-01-07 13:41:38 -08:00
Aaron Patterson 2ee4c8d90b only rescue from Mysql::Error exceptions [#6236 state:resolved] 2011-01-07 11:48:29 -08:00
Aaron Patterson 839f3bf682 just use a hash for doing association caching 2011-01-07 11:28:11 -08:00
Aaron Patterson 8a1c533780 no need for self 2011-01-06 15:15:36 -08:00
Nick Sutterer 7773c32400 corrected docs for Hash#to_xml and added examples. 2011-01-06 17:57:09 +01:00
Nick Sutterer 54f3aa8633 added tests for XmlMini#to_tag. 2011-01-06 17:56:22 +01:00
Aaron Patterson eba8411652 adding an `encode_with` method for Psych dump/load methods 2011-01-05 14:59:19 -08:00
Aaron Patterson 97bc74c746 make sure new objects can round trip 2011-01-05 14:03:13 -08:00
Aaron Patterson 6d74710828 make sure that Psych can roundtrip an AR object 2011-01-05 14:01:47 -08:00
Aaron Patterson 9731c862ec AR internals expect a normal hash, otherwise there are serialization incompatibilities 2011-01-05 13:50:08 -08:00
Aaron Patterson 64c82f9ec6 only define log_level reader once, make sure to initialize @log_level 2011-01-05 11:19:09 -08:00
Aaron Patterson c7dce2c7b2 no need to specify self 2011-01-05 11:08:21 -08:00
Aaron Patterson 102255330b no need to send a symbol to send() 2011-01-05 10:50:46 -08:00
Aaron Patterson 90171ad833 avoid creating so many Arel::Table objects 2011-01-05 10:29:06 -08:00
Aaron Patterson 9f1b0b32e2 use attr_reader and alias methods to access instance variables 2011-01-05 09:58:25 -08:00
Aaron Patterson 8bdc191994 we have a method for this, so let's use it 2011-01-05 09:51:09 -08:00
Aaron Patterson e468a62dc8 use arel ast construction rather than generating strings 2011-01-05 09:47:13 -08:00
Aaron Patterson 35a225535f use arel to construct AST rather than generate strings 2011-01-05 09:23:30 -08:00
Hemant Kumar 8de5595e4d fix difference between behaviour of blank and empty
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-05 13:18:10 +01:00
Aaron Patterson 5c66677987 make our yaml output consistent 2011-01-04 17:29:40 -08:00
Aaron Patterson 7bd32e4d1d add Psych::SyntaxError to the list of rescued YAML exceptions 2011-01-04 16:52:47 -08:00