Piotr Sarnacki
c9d23214ae
Allow to run migrations from more than one directory in rake tasks
2010-12-09 00:04:36 +01:00
Piotr Sarnacki
d0467e08e5
Allow to run migrations from more than one directory
2010-12-09 00:04:36 +01:00
Aaron Patterson
e924814b28
just allocate the table in initialize
2010-12-08 14:14:14 -08:00
Xavier Noria
8c822e8e29
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-08 21:21:49 +01:00
Xavier Noria
0aa78826e4
makes a pass to the action caching rdoc
2010-12-08 21:20:53 +01:00
Aaron Patterson
45ea60eee7
fewer method calls, fewer code branches
2010-12-08 12:11:43 -08:00
Aaron Patterson
c69bd59a9c
only call active_record once
2010-12-08 12:09:00 -08:00
Aaron Patterson
dcc0c9a8bb
dry up calls to table_aliases
2010-12-08 12:05:02 -08:00
Aaron Patterson
de4bd472c3
remove code that could never be executed
2010-12-08 11:54:45 -08:00
Aaron Patterson
b8d57a0400
have table_aliases call count_aliases to set the default value
2010-12-08 11:50:16 -08:00
Aaron Patterson
f4223cc7ab
arel ignores the columns parameter
2010-12-08 11:18:26 -08:00
Aaron Patterson
17d72dd19f
adding a fixme comment
2010-12-08 11:02:15 -08:00
Aaron Patterson
3499f882cc
renaming variables, making the join_ast method private
2010-12-08 10:54:24 -08:00
Aaron Patterson
ddd6dee043
further reducing dependence on custom_joins
2010-12-08 10:35:26 -08:00
Aaron Patterson
2fd385d471
reducing use of custom joins
2010-12-08 10:29:52 -08:00
Aaron Patterson
1d96d44da3
passing the ast to a table when the relation is a table
2010-12-07 18:54:04 -08:00
Aaron Patterson
d98cb5153d
JoinDependency is always created with an AST now
2010-12-07 17:05:15 -08:00
Aaron Patterson
2d9d6cd4c2
passing the ast to JoinDependency
2010-12-07 16:48:59 -08:00
Aaron Patterson
d6133209ce
arel is lazy about column information, so no need to pass it around
2010-12-07 15:25:16 -08:00
Aaron Patterson
ddbd203961
reduce string objects, reduce method calls
2010-12-07 15:25:16 -08:00
Pavel Gorbokon
1ce9b73e5c
Replace nested ifs with case/when
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-12-07 20:56:10 -02:00
Pavel Gorbokon
4c4c7a272f
Ommit nil in method call
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-12-07 20:55:39 -02:00
Aaron Patterson
ef79658bd1
save the AR reference rather than delegating
2010-12-07 14:47:21 -08:00
Aaron Patterson
70ab450274
cleaning up custom_join_sql method
2010-12-07 14:01:37 -08:00
Neeraj Singh
3ac844deec
Add to documentation that action caching does
...
handle HTTP_ACCEPT attribute properly and might
provide wrong result. Use params[:format] to
avoid this issue.
2010-12-06 16:38:47 -05:00
Santiago Pastorino
7c920631ec
Test using default option as symbol added for human_attribute_name
2010-12-05 13:26:14 -02:00
Santiago Pastorino
33b0a30fcc
default could be a symbol here so attribute.to_s.humanize should be the final option
2010-12-05 12:57:45 -02:00
Santiago Pastorino
20ba81e47d
We can use the keys of the @attributes hash here and avoid a method call
2010-12-05 12:44:17 -02:00
Santiago Pastorino
c4809d9984
use map instead of each
2010-12-05 12:44:14 -02:00
Santiago Pastorino
3ab98cf6e0
If default is provided don't add attribute.to_s.humanize to the options
2010-12-05 12:36:56 -02:00
Santiago Pastorino
0dbf4ac709
Test falling back to default added for human_attribute_name
2010-12-05 12:36:53 -02:00
Santiago Pastorino
b870d67290
Test using default option added for human_attribute_name
2010-12-05 12:36:51 -02:00
Xavier Noria
48386d245b
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-05 10:33:50 +01:00
Carlos Antonio da Silva
e1d0d5ae81
Fix mime type doc typos
2010-12-04 22:40:05 -02:00
Santiago Pastorino
b696dd70db
Allow back passing :rescue_format => nil and test added
2010-12-04 20:08:23 -02:00
Santiago Pastorino
be4551f63b
Use ||= here
2010-12-04 19:01:00 -02:00
Santiago Pastorino
a11ddf3ee2
Fix indentation here
2010-12-04 17:50:02 -02:00
Santiago Pastorino
3e84255942
attributes_before_type_cast are just the value of @attributes
2010-12-04 17:49:37 -02:00
Sven Fuchs
896e25e994
Make TranslationHelper#translate use the :rescue_format option in I18n 0.5.0
...
Don't catch exceptions here. Instead only declare that we want exceptions to be rescued as :html, but also let users configure reactions to exceptions in I18n.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-04 18:00:52 +01:00
Sven Fuchs
7ffd5daa7f
bump i18n gem
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-04 18:00:31 +01:00
Ryan Bigg
c4669d3c02
Config guide: continuing work on documenting the initializers
2010-12-04 11:27:17 +11:00
Aaron Patterson
a299fcaef9
not a responsibility for rails to test
2010-12-03 16:22:42 -08:00
Aaron Patterson
d21f38aaa2
use the columns hash for primary key lookup
2010-12-03 15:33:59 -08:00
Aaron Patterson
399730bdd2
removing unused setup
2010-12-03 12:00:09 -08:00
Aaron Patterson
47737681fd
in the middle of refactoring
2010-12-03 12:00:09 -08:00
José Valim
226ea0e9e8
Wrap everything in class << self.
2010-12-03 13:27:43 +01:00
José Valim
78afe68afb
Merge remote branch 'joshk/redirect_routing'
...
Conflicts:
actionpack/CHANGELOG
actionpack/lib/action_controller/metal/mime_responds.rb
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-03 12:27:50 +01:00
Ryan Bigg
30bcdff405
Config guide: begin documenting the initializers
2010-12-03 19:16:25 +11:00
Ryan Bigg
b800125ae8
Config guide: Add javascript_expansions and stylesheet_expansions
2010-12-03 18:06:02 +11:00
Ryan Bigg
04779fbadd
Config guide: should use config.action_dispatch.tld_length to set the TLD
2010-12-03 17:34:34 +11:00