- 29 12月, 2008 1 次提交
-
-
由 Michael S. Klishin 提交于
-
- 28 12月, 2008 3 次提交
-
-
由 Michael S. Klishin 提交于
To simplify using of ActiveSupport in 3rd party libraries, a simple way to require only minimum of commonly used extensions (multibyte, inflections, array and hash extensions, #blank?, and a few others) is needed. For exactly this reason some out-of-Rails-space libraries adopted Extlib, originally from DataMapper. To keep it 2067% backwards compatible, and still available to everyone even in 2.x releases, active_support/minimalistic.rb was added. Use it like this: gem 'active_support', '>=2.3' require 'active_support/minimalistic' instead of require 'activesupport' Right now this package with RubyGems uses about 10 megs of RAM (10.01 or so). It can be further slimmed down though, once we simplify multibyte implementation that right now uses advanced accessors from Module extensions. To compare RAM usage with previous ActiveSupport versions and Extlib, at the time of writing, see http://gist.github.com/40401.
-
由 Aaron Quint 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Yaroslav Markin 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 27 12月, 2008 11 次提交
-
-
由 Yaroslav Markin 提交于
Signed-off-by: NDavid Heinemeier Hansson <david@loudthinking.com>
-
由 Yaroslav Markin 提交于
ActiveRecord::Base#new_record? now returns false for existing records (was nil) [#1219 state:committed] Signed-off-by: NDavid Heinemeier Hansson <david@loudthinking.com>
-
由 Yehuda Katz 提交于
App with simple respond_to: def index respond_to do |format| format.html format.xml format.json end end On JRuby (after complete hotspot warmup) -- 8% improvement: 550 requests per second after this commit 510 requests per second with old method_missing technique On MRI (8% improvement): 430 requests per second after this commit 400 requests per second with old method_missing technique
-
由 Pratik Naik 提交于
-
由 Yehuda Katz 提交于
-
由 Frederick Cheung 提交于
With self referential associations, the scope for the the top level should not affect fetching of associations, for example when doing Person.male.find :all, :include => :friends we should load all of the friends for each male, not just the male friends.
-
由 Pivotal Labs 提交于
Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
由 trans 提交于
Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
由 Frederick Cheung 提交于
-
由 Frederick Cheung 提交于
Marshal.dump(Marshal.load(marshaled_hash)) is not guarenteed to be equal to marshaled_hash because of the lack of ordering of hash
-
由 Pratik Naik 提交于
-
- 26 12月, 2008 8 次提交
-
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
Examples: # Instead of render(:action => 'other_action') render('other_action') Note : Argument must not have any '/'
-
由 Pratik Naik 提交于
Examples: # Instead of render(:template => 'controller/action') render('controller/action') Note : Argument must not begin with a '/', but have at least one '/'
-
由 Pratik Naik 提交于
Examples: # Instead of render(:file => '/Users/lifo/home.html.erb') render('/Users/lifo/home.html.erb') Note : Filename must begin with a forward slash ('/')
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
- 25 12月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
-
- 24 12月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
-
- 23 12月, 2008 9 次提交
-
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
- 22 12月, 2008 6 次提交
-
-
由 Luis Hurtado 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Sam Oliver 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Sergio Gil 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Daniel Luz 提交于
Ensure Model#last doesn't affects order for another finders inside the same scope [#1499 state:resolved] Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Sam Oliver 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Joshua Peek 提交于
Ensure the template format is always passed to the template finder. Now we can cleanup some nasty stuff.
-