09 Jul '12, 7pm

Memoizable#memoize - this has been deprecated; replace with Memoist #rails

# include InstanceMethods # if method_defined?(:#{original_method}) # if method_defined?(:_unmemoized_mime_type) raise "Already memoized #{symbol}" # raise "Already memoized mime_type" end # end alias #{original_method} #{symbol} # alias _unmemoized_mime_type mime_type # if instance_method(:#{symbol}).arity == 0 # if instance_method(:mime_type).arity == 0 def #{symbol}(reload = false) # def mime_type(reload = false) if reload || !defined?(#{memoized_ivar}) || #{memoized_ivar}.empty? # if reload || !defined?(@_memoized_mime_type) || @_memoized_mime_type.empty? #{memoized_ivar} = [#{original_method}] # @_memoized_mime_type = [_unmemoized_mime_type] end # end #{memoized_ivar}[0] # @_memoized_mime_type[0] end # end else # else def #{symbol}(*args) # def mime_type(*args) #{memoized_ivar} ||= {} unless frozen? # @_memoized_mime_type ||= {} unless frozen? args_length = method(:#{...

Full article: http://apidock.com/rails/ActiveSupport/Memoizable/memoize...

Tweets

Memoizable - this has been deprecated; see link...

apidock.com 09 Jul '12, 7pm

this has been deprecated; see linked note This has been deprecated. See this note on memoize : http://apidock.com/rails/Ac...

Single Responsibility on Rails Explained

rubyflow.com 09 Jul '12, 9am

Single Responsibility on Rails Explained Posted by solnic on July 09, 2012 — 0 comments Here's my take on SRP in Rails men...

Rails Edge: Custom flash types

rubyflow.com 09 Jul '12, 7am

Rails Edge: Custom flash types Posted by oscardb on July 09, 2012 — 0 comments Rails edge: Custom flash types Comments “ ”...

rails-uploader (0.0.5): Rails HTML5 FileUpload ...

rubygems.org 08 Jul '12, 8am

rails-uploader 0.0.5 Rails HTML5 FileUpload helpers install gem install rails-uploader Download Documentation Subscribe St...

rails | | your community gem host:

rubygems.org 07 Jul '12, 1pm

Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages...

Vim advanced search and replace

rubyflow.com 03 Jul '12, 5pm

Vim advanced search and replace Posted by avdgaag on July 03, 2012 — 0 comments I blogged about a few advanced search and ...

Ruby on Rails developer: Violet Smith from Indi...

workingwithrails.com 08 Jul '12, 5am

We are highly skilled experienced Web Developers with strong skills and experience. We are looking for Temporary or Full T...