Jeremy Kemper
f6520b7dc7
Test for tinyint
2008-06-23 23:42:06 -07:00
Jeremy Kemper
b409474325
link_to_function and button_to_function shouldn't modify their options hashes
2008-06-23 23:41:21 -07:00
Jeremy Kemper
290e1e2fc5
Treat any limit > 4 as bigint
2008-06-23 18:16:03 -07:00
Cheah Chu Yeow
f1cfd12487
Allow script/about to run in production mode instead of failing with a cryptic const_missing error.
...
[#370 state:resolved]
2008-06-23 10:27:33 -07:00
Sven Fuchs
8461526f34
silence deprecation warning during validations test
2008-06-23 14:55:07 +02:00
Sven Fuchs
77177441d1
including rcov shell scripts for reference
2008-06-23 14:49:47 +02:00
Sven Fuchs
ac66865ea3
update tests according to removal of self.locale from helpers
2008-06-23 14:49:02 +02:00
Sven Fuchs
c178a87b43
remove call to self.locale from helpers
2008-06-23 14:37:50 +02:00
Sven Fuchs
2ee9f2a030
remove generic translate helpers
2008-06-23 14:34:01 +02:00
Sven Fuchs
0dddba41fc
rather cosmetic improvements of test coverage
2008-06-23 14:33:29 +02:00
Jeremy Kemper
d7462ea365
Revert "Check for mocha gem without requiring the lib. [ #403 state:resolved]"
...
This reverts commit 4d5ac3f3d2 .
2008-06-23 00:31:49 -07:00
Jeremy Kemper
4d5ac3f3d2
Check for mocha gem without requiring the lib. [ #403 state:resolved]
2008-06-22 20:52:29 -07:00
Tarmo Tänav
baddea95e1
Always treat integer :limit as byte length. [ #420 state:resolved]
2008-06-22 20:42:31 -07:00
Daniel Morrison
3610997ba3
Partial updates don't update lock_version if nothing changed. [ #426 state:resolved]
2008-06-22 20:33:43 -07:00
Mark Catley
0fd3e4cd2b
Fix column collision with named_scope and :joins. [ #46 state:resolved]
2008-06-22 19:21:15 -07:00
Tammer Saleh
bb6e8eea5a
Fixed polymorphic_url to be able to handle singleton resources.
...
Example usage:
polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post)
[#461 state:resolved]
2008-06-22 18:58:47 -07:00
Jeremy Kemper
a210f50361
Oops, already had a postgresql_version method!
2008-06-22 18:50:19 -07:00
ian
3532eaf92a
Only use DROP ... IF EXISTS for PostgreSQL 8.2 or later. [ #400 state:resolved]
2008-06-22 18:31:47 -07:00
Michael Raidel
f94600bdaf
ActiveRecord::Migrator#run records version-state after migrating. [ #369 state:resolved]
2008-06-22 18:16:17 -07:00
Tarmo Tänav
1afae84ab2
Fixed that scopes defined with a string name could not be composed
2008-06-22 17:26:00 -07:00
Jeremy Kemper
43cbcb10ae
nix extra newline
2008-06-22 16:22:23 -07:00
Jeremy Kemper
a73ac98123
Changelog for 509374e
2008-06-22 16:21:08 -07:00
Tarmo Tänav
509374ebe2
Named bind variables can now be used with postgresql-style typecasts
...
For example :conditions => ['stringcol::integer = :var', { :var => 10 }]
will no longer raise an exception about ':integer' having a missing value.
2008-06-22 16:16:06 -07:00
Diego Algorta
2e1b56c937
MySQL: rename_column preserves default values. [ #466 state:resolved]
2008-06-22 15:21:11 -07:00
Jeremy Kemper
a02d672cd7
Horo rdoc template
2008-06-22 10:38:25 -07:00
Sven Fuchs
3533dc6812
check self.locale instead of request.locale in helpers
2008-06-22 13:49:38 +02:00
Sven Fuchs
67fce4671e
crap, an array never has a request, stupid.
2008-06-22 13:49:08 +02:00
Sven Fuchs
20d6630c1b
Replaced country_options_for_select with old,
...
untranslated version and moved country-related helpers to a new
FormCountryHelper helper module so that they can easily be moved to a plugin.
Updated tests accordingly.
2008-06-22 11:41:51 +02:00
Sven Fuchs
d897acfbb1
remove DeprecatedConstantToMethodProxy again
2008-06-22 11:39:10 +02:00
Jeremy Kemper
f4ccc17953
Performance: javascript helper tweaks to speed up escaping and reduce object allocations when building options strings
2008-06-21 14:54:10 -07:00
Sven Fuchs
55e2e2e8b4
experimental DeprecatedConstantToMethodProxy
2008-06-21 18:12:59 +02:00
Sven Fuchs
8bfdabbd8b
incorporate #translate usage with several default keys
...
(use first default key that resolves to a translation). this might, depending
on the backend implementation save some expensive lookups (like db lookups)
2008-06-21 17:50:37 +02:00
Jeremy Kemper
9a0e443719
Everything responds to #to_param
2008-06-21 04:19:30 -07:00
Sven Fuchs
428aa24d24
Renamed lang/ to locale/ because that's what we seem to
...
standarize on. Also, in future this place can be used for data/code that's
not literally translations but conceptually belongs to the locale (like
custom pluralization algorithms etc.).
2008-06-21 11:35:02 +02:00
Sven Fuchs
c1e2506494
Changed process of storing translations from the
...
client libraries to the backend: clients now can pass a block to
backend#populate which can contain code to load and register translations.
This makes sense for backends that persist their translations (e.g. to db)
so the repeated loading and passing of translations throughout the server
startup would be wasted resources.
2008-06-21 11:27:19 +02:00
Jeremy Kemper
8d24a029df
Don't assume RubyProf constants are defined
2008-06-20 10:42:36 -07:00
David Heinemeier Hansson
161ab28b7c
Added block-handling to Enumerable#many? (Damian Janowski) [ #452 state:resolved]
2008-06-20 11:31:06 -05:00
Jeremy Kemper
00ba4c0cf3
true#to_param => true, so be sure to #to_s expanded cache keys
2008-06-20 00:46:00 -07:00
Jeremy Kemper
879245de1c
Tired of seeing <foo>/run
2008-06-20 00:36:59 -07:00
Jeremy Kemper
83c3e9903d
Don't profile GC runs/time by default
2008-06-20 00:35:11 -07:00
Jeremy Kemper
f47c81ff37
Fall back to #to_s for cache key expansion
2008-06-20 00:25:41 -07:00
Sven Fuchs
585c8c17c3
rename Backend::Simple#add_translations to set_translations
...
because it overwrites existing translations
2008-06-20 09:13:20 +02:00
Jeremy Kemper
72f93b581f
Check whether blocks are called from erb using a special __in_erb_template variable visible in block binding.
2008-06-19 22:21:56 -07:00
Jeremy Kemper
c440c9b199
Move erb_trim_mode setting to the ERB template handler. Keep a Base.erb_trim_mode= delegator around.
2008-06-19 17:18:07 -07:00
Pratik Naik
2e232af91f
Add performance test generator
2008-06-19 20:13:45 +01:00
Sven Fuchs
b09c6e7444
add a generic tranlate view helper
2008-06-19 19:08:14 +02:00
rick
10c581a6de
fix merge
2008-06-19 09:59:36 -07:00
Sven Fuchs
2fe4d350e9
make ActiveRecord::Errors.default_error_messages look up translated error messages
2008-06-19 18:31:11 +02:00
Sven Fuchs
fdb5f810dc
I18n has not been released as a gem, yet
2008-06-19 16:55:47 +02:00
Sven Fuchs
4a8486a1b1
add lang file for active_support
2008-06-19 16:43:30 +02:00