aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3536 from pkumar/masterJosé Valim2011-11-061-0/+1
|\ | | | | Make pluralize follow singularize's logic of uncountability check
| * Added the test case for #3537Pavan Kumar Sunkara2011-11-061-0/+1
|/
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-11-061-2/+2
|\
| * Docs cosmetic fixes in Action View form_helper.rbAlexey Vakhov2011-11-061-2/+2
| |
* | RUBY_ENGINE is not defined on 1.8Jon Leighton2011-11-061-1/+1
| |
* | Implement a workaround for a bug in ruby-1.9.3p0.Jon Leighton2011-11-063-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | The bug is that an error would be raised while attempting to convert a template from one encoding to another. Please see http://redmine.ruby-lang.org/issues/5564 for more details. The workaround is to load all conversions into memory ahead of time, and will only happen if the ruby version is *exactly* 1.9.3p0. The hope is obviously that the underlying problem will be resolved in the next patchlevel release of 1.9.3.
* | Revert "Skip test_default_external_works on the CI for Ruby 1.9.3."Jon Leighton2011-11-061-11/+0
| | | | | | | | This reverts commit 10773f94eae0dacf10e2ed0c28f6bb73805c2521.
* | Merge pull request #3537 from dvyjones/refactor-pluralize-singularizeJosé Valim2011-11-061-16/+18
|\ \ | | | | | | Refactored pluralize and singularize into a common method
| * | Refactored pluralize and singularize into a common method.Henrik Hodne2011-11-061-16/+18
| | | | | | | | | | | | See diff discussion on rails/#3536.
* | | Merge pull request #3535 from jmazzi/masterJon Leighton2011-11-062-1/+20
|\ \ \ | | | | | | | | Update ActiveRecord#attribute_present? to work as documented
| * | | Update ActiveRecord#attribute_present? to work as documentedJustin Mazzi2011-11-052-1/+20
|/ / / | | | | | | | | | | | | | | | | | | "Returns true if the specified attribute has been set by the user or by a database load and is neither nil nor empty?" Fixes #1613
* | | implements AR::Relation#explainXavier Noria2011-11-059-1/+291
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it.
* | | Merge pull request #3534 from guilleiguaran/arel-git-gemfileXavier Noria2011-11-051-0/+2
|\ \ \ | | | | | | | | Add arel to Gemfile on apps generated in edge Rails
| * | | Add arel to Gemfile on apps generated in edge RailsGuillermo Iguaran2011-11-051-0/+2
|/ / /
* | | bumps up sprocketsXavier Noria2011-11-051-1/+1
| | |
* | | fixes typoXavier Noria2011-11-051-1/+1
| | |
* | | implements AS::Notifications.subscribed, which provides subscriptions to ↵Xavier Noria2011-11-053-0/+63
|/ / | | | | | | events while a block runs
* | expands the documentation of AS::NotificationsXavier Noria2011-11-051-14/+46
| |
* | Merge pull request #3525 from kennyj/fix_3440-1Jon Leighton2011-11-053-2/+20
|\ \ | | | | | | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440)
| * | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440)kennyj2011-11-063-2/+20
| | |
* | | Revert "Merge pull request #2378 from cesario/remove_warnings_activemodel"Jon Leighton2011-11-051-1/+0
| | | | | | | | | | | | | | | | | | | | | This reverts commit 6aaae3de277b572f37e09f16ae12737c3c87dfb7, reversing changes made to fdbc4e5f4e5746ebf558485348c841b33f038fda. Reason: build failure.
* | | make class name consistent with the filenameVijay Dev2011-11-051-1/+1
| | |
* | | Skip test_default_external_works on the CI for Ruby 1.9.3.Jon Leighton2011-11-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test is affected by a bug in Ruby 1.9.3p0 and trunk: http://redmine.ruby-lang.org/issues/5564 Given we cannot fix it for ourselves, it is better to skip for now so that we will easily see if further failures are introduced. Jon Leighton is monitoring the bug report and will revert this when a suitable solution is found (either a new Ruby release or a generic workaround). If you are using 1.9.3 in your app and have templates that are not in UTF-8, you should add a workaround early on in the boot process. For example, if your templates are Shift_JIS encoded, then add the following in an initializer: Encoding::Converter.new('Shift_JIS', 'UTF-8')
* | | Use uniq instead of manually putting a DISTINCT in the queryJon Leighton2011-11-051-14/+2
| | |
* | | Add ActiveRecord::Relation#uniq for toggling DISTINCT in the SQL queryJon Leighton2011-11-059-13/+89
| | |
* | | Merge pull request #2378 from cesario/remove_warnings_activemodelVijay Dev2011-11-051-0/+1
|\ \ \ | |_|/ |/| | Remove warnings by calling remove_method
| * | Remove warnings by calling remove_methodFranck Verrot2011-07-311-0/+1
| | |
* | | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-11-0511-37/+45
|\ \ \
| * | | Revert "outline two ways to invoke a custom active model validator"Vijay Dev2011-11-051-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d163d3bf7ebb98d90977974aed8f85b7ec678afd. Reason: The alternate approach can be documented in the guide and not disrupt the existing flow in the readme.
| * | | Revert "make the inline text a comment in the code block"Vijay Dev2011-11-052-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 36a5f48f9323c4a770c290a9a16ae58388e7925f. Reason: Editing .gitignore in docrails is not allowed. Docrails is meant only for documentation.
| * | | Fixed after_initialize/after_find guideFlorian Walch2011-11-051-3/+3
| | | | | | | | | | | | | | | | | | | | Defining after_initialize and after_find as ordinary methods like documented in the guide doesn't work with Rails 3.1.1; now macro-style is used here, too.
| * | | make the inline text a comment in the code blockKarthik Muthupalaniappan2011-11-042-1/+3
| | | |
| * | | outline two ways to invoke a custom active model validatorKarthik Muthupalaniappan2011-11-041-1/+9
| | | |
| * | | Added bundle exec to rake test.Henrik Hodne2011-11-031-6/+6
| | | | | | | | | | | | | | | | This is in response to rails/rails#3504.
| * | | Fix javascript_include_tag examples in documentationAlexey Vakhov2011-11-031-2/+2
| | | |
| * | | Fix small typos in routing docsAlexey Vakhov2011-11-031-1/+3
| | | |
| * | | minor editVijay Dev2011-11-021-1/+1
| | | |
| * | | minor edits in AR validations guideVijay Dev2011-11-021-10/+2
| | | |
| * | | use relative urls for linking to sections in the guidesVijay Dev2011-11-021-10/+10
| | | |
| * | | Fix wrong link in initialization docjuandebravo2011-11-011-1/+1
| | | |
| * | | Fix typo in Dispatcher#controller documentationAviv Ben-Yosef2011-11-011-1/+1
| | | |
| * | | Fix typo in constraints method documentationAlexey Vakhov2011-11-011-1/+1
| | | |
| * | | [config guide] mention that config methods are to be called on Railtie ↵Ryan Bigg2011-11-011-0/+2
| | | | | | | | | | | | | | | | subclasses
| * | | [engines guide] add 'General engine configuration' sectionRyan Bigg2011-11-011-0/+12
| | | |
| * | | Update routing guides, root route should be at the top of the fileAlexey Vakhov2011-10-311-1/+1
| | | |
| * | | Fix typo on the performance test guideGonçalo Silva2011-10-301-1/+1
| | | |
* | | | Merge pull request #3529 from vjebelev/ar_ordered_indexes2Jon Leighton2011-11-0511-20/+111
|\ \ \ \ | |_|_|/ |/| | | AR changes to support creating ordered (asc, desc) indexes
| * | | AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-0411-20/+111
|/ / /
* | | add tests for the case where size is explicitly passed to number_field helperVijay Dev2011-11-041-0/+4
| | |
* | | Merge pull request #3517 from arunagw/test_fix_activerecordJon Leighton2011-11-041-1/+1
|\ \ \ | | | | | | | | Fix test as one more has_many added