aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix up test altering global state that was causing me griefJon Leighton2011-12-011-2/+4
|
* Get rid of the underscore versions of attribute methods!Jon Leighton2011-12-016-6/+40
| | | | This makes me happy!
* Don't rely on underscore-prefixed attribute methods.Jon Leighton2011-12-013-48/+80
| | | | | | Define singleton methods on the attributes module instead. This reduces method pollution on the actual model classes. It also seems to make something faster, I am unsure why! O_o
* Remove unnecessary *argsJon Leighton2011-12-011-2/+2
|
* Merge branch 'exceptions' with the following features:José Valim2011-12-0116-254/+406
|\ | | | | | | | | | | | | | | | | * A Railtie API for registering new exceptions and their respective status code (check Active Record railtie for an example) * Extraction of ShowExceptions middleware logging and debugging features into a middleware called DebugExceptions Conflicts: actionpack/CHANGELOG.md
| * Remove unnecessary test setup.José Valim2011-12-011-6/+1
| |
| * Split and improve show and debug exceptions middlewares.José Valim2011-12-014-89/+145
| |
| * Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-0110-95/+130
| |
| * Add a deprecation to old show exceptions API (even though it was not public).José Valim2011-12-011-0/+14
| |
| * Add an ExceptionWrapper that wraps an exception and provide convenience helpers.José Valim2011-12-015-77/+104
| |
| * Allow rescue responses to be configured through a railtie.José Valim2011-12-016-30/+55
| |
* | Revert "Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-014-12/+4
| | | | | | | | | | | | | | | | fresh_when/stale? conditional get methods from Action Pack" Needless indirection with no added value. This reverts commit 535853e83b9092078035a5abb2aa242fba815c05.
* | Added ActiveRecord::Base#last_modified to work with the new ↵David Heinemeier Hansson2011-12-014-4/+12
| | | | | | | | fresh_when/stale? conditional get methods from Action Pack
* | Allow fresh_when/stale? to take a record instead of an options hash [DHH]David Heinemeier Hansson2011-12-013-4/+97
|/
* Update CHANGELOG.José Valim2011-12-011-1/+3
|
* Merge pull request #3660 from jdelStrother/asset_protocolJosé Valim2011-12-012-2/+22
|\ | | | | default_asset_host_protocol should not default to :relative
| * Leave default_asset_host_protocol unsetJonathan del Strother2011-12-012-2/+22
|/ | | When default_asset_host_protocol is left as nil, it will use absolute protocols when a request is present, and relative protocols otherwise (eg in asset generation)
* Merge pull request #3823 from avakhov/av-length-validation-exception-msg-fixJosé Valim2011-11-301-1/+1
|\ | | | | Fix argument error message for length validation
| * Fix argument error message for length validationAlexey Vakhov2011-12-011-1/+1
|/
* Add hackery to make Syck use encode_with/init_with. Fixes 1.8 after recent ↵Jon Leighton2011-12-012-0/+25
| | | | changes to attribute serialization.
* don't alter global state in testJon Leighton2011-11-301-2/+3
|
* If the table behind has no primary key, do not ask again and just return nil.Julius de Bruijn2011-11-302-1/+7
|
* consistencyJon Leighton2011-11-303-16/+16
|
* Don't check column type, you might implement a custom coder that serializes ↵Jon Leighton2011-11-301-1/+1
| | | | to a different type
* omg computer science!Jon Leighton2011-11-304-29/+47
| | | | | | | Implement a mini state machine for serialized attributes. This means we do not have to deserialize the values upon initialization, which means that if we never actually access the attribute, we never have to deserialize it.
* Fix typoJon Leighton2011-11-301-2/+2
|
* Don't need second paramJon Leighton2011-11-302-4/+4
|
* No longer need to undef id as we are defining it ourselvesJon Leighton2011-11-301-3/+0
|
* Move some serialization stuff out of BaseJon Leighton2011-11-302-40/+42
|
* Extract attribute serialization code into a separate moduleJon Leighton2011-11-304-28/+49
|
* Use inheritance to avoid special-case code for the 'id' methodJon Leighton2011-11-304-9/+21
|
* #id is an alias for whatever the primary key isJon Leighton2011-11-301-1/+1
|
* fix indentJon Leighton2011-11-301-3/+3
|
* expand on pluck docsVijay Dev2011-12-011-3/+18
|
* minor typo fixVijay Dev2011-12-012-2/+2
|
* s/is is/isVijay Dev2011-12-011-1/+1
|
* Merge pull request #3816 from lest/exception-page-utf-8Yehuda Katz2011-11-302-12/+35
|\ | | | | fix exception page when template contains utf-8 and parameters contain utf-8
| * fix exception page when template contains utf-8 and parameters contain utf-8lest2011-11-302-12/+35
| |
* | Merge pull request #3786 from nashby/add-namespace-to-formVijay Dev2011-11-301-1/+1
|\ \ | | | | | | update guides for the namespace option in form helpers
| * | update guidesVasiliy Ermolovich2011-11-281-1/+1
| | |
* | | fix bad nodocsVijay Dev2011-12-011-11/+21
| |/ |/|
* | switch WatchStack to use composition, tighten up APIAaron Patterson2011-11-301-6/+13
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-11-309-14/+21
|\ \
| * | Fixing incorrect documentation Aviv Ben-Yosef2011-11-301-2/+2
| | | | | | | | | `path_names` can only be used for affecting `new` and `edit`
| * | Fix ActionDispatch::Request method explanationsTravis Pew2011-11-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | The methods, "post?", "put?", "head?", etc. contain an incorrect explanation. They state that they are equivalent to request_method == :type, but this is not accurate because the methods convert the string to a symbol. They are actually equivalent to: request_method_symbol == :type
| * | there is no need to repeat about possibility of using -h option to get full helpSergey Parizhskiy2011-11-281-1/+1
| | |
| * | Merge branch 'master' of github.com:lifo/docrailsSergey Parizhskiy2011-11-28159-1812/+2855
| |\ \
| | * | Update information about foreign key plugins support in the guidesRodrigo Rosenfeld Rosas2011-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is not "a number" of up-to-date maintained plugins for dealing with foreign keys. The foreign_key_migrations does not have any update since 2009 and is also about to be removed: Extracted from http://www.harukizaemon.com/2009/09/plugins-grab-em-while-theyre-stale.html, referenced in the plugin reference of the old guide version: "And so it is that I will very shortly (within the next month) delete most of the plugins from my GitHub account (harukizaemon)"
| | * | Revert "fixed typo in getting started form_for for comments"Arun Agrawal2011-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2f428a6245a18017c7942f8fef3da4a85bec8cc5. See comments here 2f428a6245a18017c7942f8fef3da4a85bec8cc5
| | * | fixed typo in getting started form_for for commentsTim Reischmann2011-11-281-1/+1
| | | |