David Heinemeier Hansson
162c7c1908
Changing "and" to && whereever I catch it
2008-04-27 17:15:50 -05:00
David Heinemeier Hansson
a37546517d
Added that the MySQL adapter should map integer to either smallint, int, or bigint depending on the :limit just like PostgreSQL [DHH]
2008-04-25 16:33:00 -05:00
Pratik Naik
1959db3246
Pass template object to Handler#compile
2008-04-24 16:58:09 +01:00
Joshua Peek
a0748848b6
Use .gitignore as the convention for dummy file names.
2008-04-24 09:20:04 -05:00
David Dollar
6c1c16bfd9
Fixes a subtle bug when using symbols for key definitions in habtm associations
2008-04-23 21:02:00 +12:00
Sam Granieri
30ad1827a6
preventing generated documentation from being picked up by git. [ #37 state:resolved]
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-04-23 20:27:23 +12:00
Eugene Pimenov
e6a3ce3392
Make sure member names aren't mistakenly set to nil when providing :path_names
...
[#19 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-04-23 20:19:22 +12:00
Joshua Bates
b6aa0e13b4
Fix include? on has_many collections with finder_sql to fall back to Array include? rather than try to use SQL.
...
[#18 state:resolved]
2008-04-23 20:18:09 +12:00
Frederick Cheung
ae51013c3f
Provide data for the key column otherwise adding a unique index will fail. [ #30 state:closed]
2008-04-23 14:24:20 +12:00
Francesc Esplugas
bf1b1e0925
Rails Edge info returns the latest git commit hash [ #36 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-04-22 15:44:13 -05:00
Frederick Cheung
a4fc93c3a9
Use schema.rb for all databases
...
Move adapter specific schema into their own files
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-04-22 13:55:13 +12:00
Joshua Peek
0a94f16b95
Fallback to Ruby's pseudo random number generator if the system does not have SHA512 installed.
2008-04-21 19:49:16 -05:00
Joshua Peek
de8b0087c6
Don't require generator_test_helper in RailsGeneratorTest.
2008-04-21 19:14:37 -05:00
Joshua Peek
6ccfc0ebde
Add .empty files to empty directories so git preserves them.
2008-04-21 19:09:46 -05:00
Cheah Chu Yeow
cf32baf915
Rescue from Timeout::Error in ActiveResource::Connection.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-04-22 09:30:56 +12:00
Cheah Chu Yeow
105910429d
Introduce ActiveResource::Base.timeout. This allows a timeout to be set on the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-04-22 09:30:41 +12:00
Cody Fauser
4809dcc1b5
* Remove default_url_options from mailer generator
...
* Improve mailer documentation regarding generating URLs
* Add no_match to mailer generator to warn contributors about default_url_options
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-04-21 14:31:54 -05:00
Joshua Peek
4ac33de4d6
Add back empty plugin folders that were lost when we moved to git.
2008-04-21 13:48:44 -05:00
Joshua Peek
1d09ccd949
Revert "Update plugin loading tests to reflect changes in plugin fixtures."
...
This reverts commit eef9002968 .
2008-04-21 13:27:19 -05:00
Joshua Peek
eef9002968
Update plugin loading tests to reflect changes in plugin fixtures.
2008-04-21 13:24:38 -05:00
Joshua Peek
1642b2362e
Gem dependencies don't require a version. Also fixed up failing gem dependency tests.
2008-04-21 12:23:15 -05:00
Joshua Peek
1a29a67178
Mock RailsFCGIHandler and Dispatcher to stop mocha deprecation warnings.
2008-04-21 11:54:46 -05:00
Pratik Naik
6dbe90dd9b
Alias Object#instance_variable_names to Object#instance_variables for Ruby 1.8.x
2008-04-21 12:03:01 +01:00
Pratik Naik
a04f022877
Delegate ivars to controller instead of copying
...
Reduce number of instance variables being copied from controller to
view. Instead, delegate them to controller instance.
2008-04-21 11:53:14 +01:00
gbuesing
f757f58388
select_datetime and select_time default to Time.zone.now when config.time_zone is set
2008-04-21 00:40:04 -05:00
gbuesing
c2c779044f
datetime_select defaults to Time.zone.now when config.time_zone is set
2008-04-21 00:08:45 -05:00
Steven Soroka
f386676661
Use the rails user when creating and dropping the database rather than falling back to the currently logged in user who may or may not have CREATE / DROP privileges and no password.
...
Closes #11564 (trac)
2008-04-21 16:42:15 +12:00
gbuesing
6ef4239f8b
Merge branch 'master' of git@github.com:rails/rails
2008-04-20 21:57:56 -05:00
gbuesing
32b82e4c6f
Duration #since and #ago with no argument (e.g., 5.days.ago) return TimeWithZone when config.time_zone is set. Introducing Time.current, which returns Time.zone.now if config.time_zone is set, otherwise just returns Time.now
2008-04-20 21:57:04 -05:00
Jeremy Kemper
1d18651ea3
Ruby 1.8.7 compat: detect and alias non-superclass DateTime#to_s
2008-04-20 19:56:01 -07:00
Jeremy Kemper
0b21ac5118
Ruby 1.8.7 compat: override unordered Enumerable#group_by
2008-04-20 19:56:01 -07:00
Jeremy Kemper
549c81db4a
Ruby 1.8.7 compat: String#start_with? and #end_with?
2008-04-20 19:56:01 -07:00
Pratik Naik
2b69840e5e
Remove ActionController::Base#view_controller_internals
...
Get rid of ActionController::Base#view_controller_internals flag and
use @@protected_view_variables for storing the list of controller
specific instance variables which should be inaccessible inside views.
2008-04-21 03:45:38 +01:00
Pratik Naik
caa03a5c87
Remove ActionController::Base#add_class_variables_to_assigns
2008-04-21 02:43:48 +01:00
Jeremy Kemper
ef8d26653d
Merge commit 'rails/master'
2008-04-20 16:50:41 -07:00
Jeremy Kemper
59f5d4fc79
Use append_features instead of included to get the inclusion order right
2008-04-20 16:49:58 -07:00
Frederick Cheung
55622e0bde
Avoid adding two DISTINCT statements to queries in sqlite 2.
2008-04-21 11:47:15 +12:00
Frederick Cheung
a2028a7d7b
Fix sqlite adapter to work with the quoted table names returned by later versions of sqlite3.
2008-04-21 11:45:48 +12:00
Jeremy Kemper
3b93ca221d
Merge commit 'rails/master'
2008-04-20 15:30:41 -07:00
Joshua Peek
46ab7422d9
Use define_callbacks helper for ActiveRecord validations.
2008-04-20 11:45:44 -05:00
Jeremy Kemper
daab53d8c0
Incompatible Symbol#to_proc was reverted upstream
2008-04-20 03:52:13 -07:00
Jeremy Kemper
f67b070fac
Override incompatible 1.8.7p1 String#chars
2008-04-19 17:16:19 -07:00
Jeremy Kemper
715db1a797
Feature check :force_encoding instead of RUBY_VERSION
2008-04-19 17:15:50 -07:00
Paul Horsfall
14a40804a2
Add conditional options to caches_page method [ #25 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-04-19 16:21:34 -05:00
Pratik Naik
3f8d3cd04f
Remove unused ignore_missing_templates option
2008-04-19 19:26:56 +01:00
Joshua Peek
17d4164a16
Introduce ActionView::TestCase for testing view helpers.
2008-04-19 13:08:24 -05:00
Pratik Naik
ef4c65088f
Move missing template logic to ActionView
2008-04-19 18:59:13 +01:00
Pratik Naik
534c6b2444
Introduce ActionView::InlineTemplate class
2008-04-19 16:21:18 +01:00
Mislav Marohnić
69a5c1df82
Add example for default_url_options[:host] to generated mailers.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-04-18 17:19:28 -05:00
Joshua Peek
29ea0f68aa
Merge branch 'master' of git@github.com:josh/rails
2008-04-18 17:14:52 -05:00