Commit Graph

23647 Commits

Author SHA1 Message Date
José Valim
e3053ee753 Copy the bin to railties so it also works if you don't have the rails gem. 2011-06-28 09:09:46 -03:00
José Valim
0a873627e4 Merge pull request #1877 from arunagw/fix_mime
Fix test to use Mime::Zip
2011-06-28 04:58:29 -07:00
Arun Agrawal
1b957177e7 Fix test to use Mime::Zip 2011-06-28 16:51:19 +05:30
José Valim
76581d0f1b Edited actionpack/CHANGELOG via GitHub 2011-06-28 02:45:27 -07:00
José Valim
4f372cf4d9 Merge pull request #1875 from esad/master
Fixed issue #1847
2011-06-28 02:44:04 -07:00
Esad Hajdarevic
2a61d47b55 Make send_file guess content-type from file extension, if type wasn't supplied (Issue #1847). Update tests & documentation. 2011-06-28 06:58:28 +02:00
Esad Hajdarevic
d73269ba53 Register some commonly used mime types (png, jpeg, pdf, zip etc.) per default 2011-06-28 06:56:47 +02:00
Aaron Patterson
9921eca51c remove the check for needs_type_condition? because ensure_proper_type will pick up the type column 2011-06-27 20:44:39 -07:00
Aaron Patterson
4006e738ed stop using && for the short circuit side effect 2011-06-27 18:16:01 -07:00
Aaron Patterson
4ec47cac10 let strings be converted to symbols inside the interpreter 2011-06-27 18:15:28 -07:00
Aaron Patterson
9152126110 avoice paying hash cost if there are no serialized attributes 2011-06-27 17:46:56 -07:00
Aaron Patterson
45b7209f1f cache column defaults for AR object instantiation 2011-06-27 17:45:34 -07:00
Aaron Patterson
06d4247f02 AR object instantiation is ~30% faster in the simple case 2011-06-27 16:15:34 -07:00
Aaron Patterson
5ddb60f2b3 initialize instance variables 2011-06-27 14:47:11 -07:00
Aaron Patterson
6054c092dc oops! remove debugging codes 2011-06-27 14:46:56 -07:00
Aaron Patterson
997aed24be default create_with_value to a hash so we can eliminate conditionals, add test surrounding create_with(nil) behavior 2011-06-27 14:18:49 -07:00
Aaron Patterson
506b2dad55 Merge pull request #1871 from guilleiguaran/arel-2-1-3
Bump ARel to 2.1.3
2011-06-27 14:06:00 -07:00
Santiago Pastorino
4bcb05de2d Merge pull request #1870 from chriseppstein/asset_urls_master
Asset urls master
2011-06-27 14:01:34 -07:00
Xavier Noria
a0960ec2d4 the generated ALT attribute for images no longer contains the digest, if any 2011-06-27 23:00:05 +02:00
Chris Eppstein
024bed387b Added a configuration setting:
config.action_controller.default_asset_host_protocol

It's best to leave this unset.

When unset the :request protocol is used whenever it can be and
:relative is used in the other situations.

When set to :request then assets hosts will be disabled when there
is no request in scope and will use the request protocol whenever a
request is in scope.

If set to :relative, then a relative protocol is always used except
for stylesheet link tags which must use the :request protocol to
avoid double downloads in IE6&7.

Conflicts:

	actionpack/lib/sprockets/helpers/rails_helper.rb
	actionpack/test/template/sprockets_helper_test.rb
2011-06-27 13:58:51 -07:00
Guillermo Iguaran
1c23887ab0 Bump ARel to 2.1.3 2011-06-27 15:58:40 -05:00
Chris Eppstein
2cc1bc3773 Move the config bootstrapping to initialization to minimize access to the Rails.application global. 2011-06-27 13:55:10 -07:00
Chris Eppstein
6c64e1e3a3 Stylesheet link tags should use the request protocol to avoid duplicate download of stylesheets in IE7 and IE8.
Conflicts:

	actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb
	actionpack/lib/sprockets/helpers/rails_helper.rb
2011-06-27 13:54:54 -07:00
Chris Eppstein
96137e8bd0 Add asset_url helper and refactor the asset paths so that asset hosts can be used during asset precompilation.
Conflicts:

	actionpack/lib/action_view/asset_paths.rb
	actionpack/lib/sprockets/helpers/rails_helper.rb
	actionpack/test/template/sprockets_helper_test.rb
2011-06-27 13:48:36 -07:00
Chris Eppstein
266b80c7b2 OrderedOptions must implement respond_to? if it implements method_missing. 2011-06-27 13:44:53 -07:00
David Heinemeier Hansson
f63f0baa59 Add JavaScript Runtime name to the Rails Info properties (thanks Sam Ruby) 2011-06-27 11:59:46 +02:00
David Heinemeier Hansson
449cc3e999 Merge pull request #1481 from arunagw/lib_assets
Generating /lib/assets  for assets
2011-06-27 02:16:24 -07:00
Santiago Pastorino
095f0466c8 Merge pull request #1861 from dchelimsky/fixture_path
Get the fixture_path from self.class instead of ActiveSupport::TestCase.
2011-06-25 12:12:49 -07:00
David Chelimsky
a7af1e0051 Get the fixture_path from self.class instead of ActiveSupport::TestCase.
This allows test classes that are not subclasses of
ActiveSupport::TestCase (like those in rspec-rails) to interact with
with this variable without having to reference ActiveSupport::TestCase.
2011-06-25 13:59:49 -05:00
Xavier Noria
211fa2d28d Merge pull request #1853 from arunagw/string_parameterize
StringToParameterizeWithNoSeparator: dashed parameter will not change.
2011-06-25 06:05:11 -07:00
Arun Agrawal
4700e1fe6e StringToParameterizeWithNoSeparator: dashed parameter will not
change.
2011-06-25 06:17:00 +05:30
Xavier Noria
7e56bf7244 registers support for acronyms in the CHANGELOG of Active Support 2011-06-24 23:28:30 +02:00
Xavier Noria
370b380306 Merge pull request #1648 from dlee/acronyms
Inflector support for acronyms (Issue #1366)
2011-06-24 14:19:42 -07:00
James Cox
d446c798a5 make the logs a little simpler to view, put the render message inline with other events, pull processing to char[0] and add a new line to the completed. looks more like a block now, which is useful for serial actions like test/dev 2011-06-24 13:10:06 -07:00
Santiago Pastorino
d6413f043c Merge pull request #1848 from raviolicode/postgresql_order_multiple_params
Fix for complex ordering of multiple columns on postgresql
2011-06-24 13:09:33 -07:00
Lucia Escanellas
9734a416fa Improve ordering of multiple columns on postgresql
* Only on postgresql, order("first asc, second asc") was invalid
* Closes #1720
2011-06-24 13:37:08 -03:00
Santiago Pastorino
7ca1a3d2aa Merge pull request #1840 from wildchild/master
Minor formatting fix
2011-06-23 16:47:56 -07:00
Alexander Uvarov
e945497955 Minor formating fix 2011-06-24 03:52:39 +06:00
José Valim
4389fc9733 Merge pull request #1829 from wildchild/master
Allow to specify roles for mass-assignment as array
2011-06-23 13:37:39 -07:00
Jon Leighton
87d6865bf7 Apply the default scope earlier when doing calculations. Fixes #1682. 2011-06-23 19:57:49 +01:00
Alexander Uvarov
ee044ea547 Follow rails convention by using Array.wrap 2011-06-23 23:06:52 +06:00
Aaron Patterson
8a1319dec0 Merge pull request #1835 from metaskills/ss_rake_master
Update SQL Server DB Rake Tasks
2011-06-23 09:45:59 -07:00
Ken Collins
b9bfb916e4 Update SQL Server db related rake tasks.
* Uses open source smoscript since scptxfr came out in 2000.
  * Uses sqlcmd which replaces osql.
  * Takes advantage of host/user/pass passed down by TinyTDS.
2011-06-23 12:41:39 -04:00
Xavier Noria
1f505a8ef2 Merge branch 'master' of git://github.com/lifo/docrails 2011-06-23 18:08:11 +02:00
José Valim
d49622a1f2 Edited actionpack/actionpack.gemspec via GitHub 2011-06-23 07:38:41 -07:00
José Valim
5839122059 Merge pull request #1830 from arunagw/enum_fixes
Fixed Failing test : It should be Enumerable::Enumerator
2011-06-23 05:51:00 -07:00
Arun Agrawal
deb60a738c Using slice for instead of gsub to pass with 1.8.7 2011-06-23 18:17:37 +05:30
Mikhail Dieterle
06fe01a337 updated rspec link 2011-06-23 03:08:32 -07:00
Alexander Uvarov
528f405cdc Allow to specify mass-assignment roles as array 2011-06-23 12:56:39 +06:00
Santiago Pastorino
87b548ccac Minor refactor 2011-06-23 00:35:54 -03:00