Vijay Dev
ab854db649
documenting monday and sunday methods
2011-11-26 23:43:52 +05:30
Arun Agrawal
cd6c5677fb
Tests added for monday and sunday
...
Reference commits :
a8f2860d0e7db86c61bb70935006100b04667ab1
80ac4dc6d0632937ccf61b38bc15fc2f6e27b18b
2011-11-26 23:37:01 +05:30
Vijay Dev
80ac4dc6d0
Adds Time#sunday method
2011-11-26 23:15:11 +05:30
Vijay Dev
a8f2860d0e
Convert aliases monday and sunday to methods
...
A recent change to beginning_of_week and end_of_week added an argument
that can be used to specify the week's starting day as a symbol. Now
these methods were aliased as monday and sunday respectively which as a
consequence of the argument addition, made calls like obj.monday(:sunday)
possible. This commit makes them methods on their own.
2011-11-26 23:08:58 +05:30
Arun Agrawal
fc20d6b681
Let's say this 3.1.3 instead of 3.1.1 in docs
2011-11-26 22:38:58 +05:30
Vijay Dev
8135e5e699
s/end_on_week/end_of_week
2011-11-26 22:06:47 +05:30
Vijay Dev
99ff8fdab5
minor doc changes
2011-11-26 22:06:47 +05:30
Jakub Kuźma
89d6db05d7
allow using orm_instance without invoking orm_class first in generators
2011-11-26 17:11:17 +01:00
José Valim
f754521675
Merge pull request #3760 from arunagw/warning_removed_unused_var
...
Warning removed unused variable
2011-11-26 06:35:42 -08:00
Arun Agrawal
9817a8b7d6
Warning removed unused variable
2011-11-26 19:30:11 +05:30
Vijay Dev
1d89540686
Merge branch 'master' of github.com:lifo/docrails
2011-11-26 19:14:39 +05:30
Vijay Dev
5c2a2ee76e
rephrased ef38c3089e1269e2b315aff503e61c0b23c95f00 and
...
mentioned about OS X and windows usually having a JS runtime
2011-11-26 19:07:36 +05:30
Vijay Dev
c4af5f00f6
use any? to check for size
2011-11-26 18:52:10 +05:30
Xavier Noria
b6916e0b92
removes a Serialization constant left in the previous revert
2011-11-25 15:06:30 -08:00
Xavier Noria
b30b932447
finders guide: adds some pointers to help users interpret the output of EXPLAIN
2011-11-25 14:58:43 -08:00
Xavier Noria
1be9830d4d
add the query to AR::Relation#explain output
...
Rationale: this is more readable if serveral queries
are involved in one call. Also, it will be possible
to let AR log EXPLAINs automatically in production
mode, where queries are not even around.
2011-11-25 14:29:34 -08:00
Xavier Noria
a5b362df56
some tweaks to PR#3547. [ Closes #3547 ]
2011-11-25 12:02:49 -08:00
gregolsen
7a33a005d7
API docstrings updated with default value info
2011-11-25 12:02:49 -08:00
gregolsen
3f1a4c3415
beginning_of_week extended in both Time and Date so that to return week start based on start day that is monday by default
2011-11-25 12:02:49 -08:00
José Valim
0a4035b12a
Revert the serializers API as other alternatives are now also under discussion
2011-11-25 19:29:39 +00:00
José Valim
2dab493867
Merge pull request #3756 from johnmdonahue/update-gem-action-linebreaks-and-indentation
...
Updating newline fix to maintain existing linebreaks and indentation and...
2011-11-25 09:44:14 -08:00
John Donahue
95e9b5fbfd
Updating newline fix to maintain existing linebreaks and indentation and test for b/eol on inserts
2011-11-25 09:06:14 -08:00
Brian Samson
0f5104d720
load has_many associations keyed off a custom primary key if that key is present but the record is unsaved
2011-11-25 08:24:54 -07:00
José Valim
6f5fdf8179
Merge pull request #3747 from lest/middleware-logger
...
middlewares should have configurable logger
2011-11-25 05:33:26 -08:00
Uģis Ozols
a607a9d978
what's -> that's
2011-11-25 14:24:14 +02:00
Uģis Ozols
9a45867b09
Remove unnecessary comment.
2011-11-25 14:22:36 +02:00
Piotr Sarnacki
8ff8fa5e5f
I suck, forgot to also change rake's task description
2011-11-25 12:54:39 +01:00
Piotr Sarnacki
c9bb099318
Display mounted engines in rake routes
by default
2011-11-25 12:45:58 +01:00
lest
cd9d28d6fd
middlewares should use logger from env
2011-11-25 13:09:46 +03:00
José Valim
fcacc6986a
Merge branch 'serializers'
...
This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides.
From José and Yehuda with love.
Conflicts:
railties/CHANGELOG.md
2011-11-25 09:59:35 +00:00
José Valim
4565c871a6
Merge pull request #3752 from ganeshkumar/gem_lending
...
Added tests for #3751
2011-11-25 01:51:56 -08:00
José Valim
696d01f7f4
Add docs to serializers. Update CHANGELOGs.
2011-11-25 09:49:54 +00:00
ganesh
c8d7291b6b
Added tests for #3751
2011-11-25 14:55:28 +05:30
José Valim
6d9f9b3b05
Add a hook for serializers in the scaffold generator (off for now).
2011-11-25 09:17:32 +00:00
José Valim
ebb8ea22f3
Add generators for serializers.
2011-11-25 09:14:05 +00:00
Piotr Sarnacki
0cd3bf8406
Allow to display engine's routes when running rake routes ENGINES=true
2011-11-24 16:16:00 +01:00
Piotr Sarnacki
30cf3e16a0
Merge pull request #3746 from qoobaa/active-model-naming-with-anonymous-classes
...
make ActiveModel::Name fail gracefully with anonymous classes
2011-11-24 06:56:46 -08:00
Jakub Kuźma
dc39af0a9a
make ActiveModel::Name fail gracefully with anonymous classes
2011-11-24 15:50:21 +01:00
Piotr Sarnacki
a478389b7d
Forgot to add CHANGELOG entry for config.railties_order
2011-11-24 13:40:27 +01:00
rpq
510502ee3a
comma
2011-11-23 23:26:17 -05:00
Michael Pearson
ef38c3089e
Move JS runtime instructions to where the error would be encountered, remove gem install.
2011-11-24 10:59:29 +11:00
José Valim
28bcda4098
Rename UserSerializer to DefaultUserSerializer in tests.
2011-11-23 23:53:20 +00:00
José Valim
7fcc8c0a1f
Rely solely on active_model_serializer and remove the fancy constant lookup.
2011-11-23 23:45:27 +00:00
Michael Pearson
0e7443060b
Add step to getting_started to install JS Runtime.
...
abstrakt on #rubyonrails found that the guide, when followed step by step,
does fails at the 'rails server' command due to a lacking JS runtime.
2011-11-24 10:33:04 +11:00
José Valim
6da52c617e
Remove listings from the serialization guide that won't make 3.2.
2011-11-23 23:22:46 +00:00
José Valim
8896b4fdc8
Implement ArraySerializer and move old serialization API to a new namespace.
...
The following constants were renamed:
ActiveModel::Serialization => ActiveModel::Serializable
ActiveModel::Serializers::JSON => ActiveModel::Serializable::JSON
ActiveModel::Serializers::Xml => ActiveModel::Serializable::XML
The main motivation for such a change is that `ActiveModel::Serializers::JSON`
was not actually a serializer, but a module that when included allows the target to be serializable to JSON.
With such changes, we were able to clean up the namespace to add true serializers as the ArraySerializer.
2011-11-23 23:18:15 +00:00
José Valim
0536ea8c78
Add safe_constantize to ActiveSupport::Dependencies.
2011-11-23 21:43:03 +00:00
José Valim
e6cfd85361
Merge pull request #3739 from lest/config-always-write-cookie
...
configuration option to always write cookie
2011-11-23 12:58:56 -08:00
lest
98a1717e7c
configuration option to always write cookie
2011-11-23 23:50:04 +03:00
José Valim
e62de52aa3
Merge branch 'master' into serializers
2011-11-23 20:43:06 +00:00