24 Jan '14, 1am

expire_actionってハッシュで渡さなければexpire_fragment実行しているだけなので、動作的には同じなんじゃないだろうか

Method deprecated or moved This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here. expire_action (options = {}) protected No documentation This method has no description. You can help the Ruby on Rails community by adding new notes. Hide source # File actionpack/lib/action_controller/caching/actions.rb, line 118 def expire_action ( options = {}) return unless cache_configured? if options . is_a? ( Hash ) && options [ :action ]. is_a? ( Array ) options [ :action ]. each {| action | expire_action ( options . merge ( :action => action )) } else expire_fragment ( ActionCachePath . new ( self , options , false ). path ) end end

Full article: http://apidock.com/rails/ActionController/Caching/Actions...

Tweets