Commit Graph

130 Commits

Author SHA1 Message Date
Francesco Rodriguez b357b974da add Ruby 2.0.0 to travis.yml 2013-05-01 18:15:06 -05:00
Francesco Rodriguez 9e226de678 add note about maintenance [ci skip] 2013-05-01 18:14:47 -05:00
Carlos Antonio da Silva 945e098ddc Merge pull request #5 from liquid/actions_documentation_fix
Fix docs in ActionController::Caching::Actions
2013-04-17 07:14:15 -07:00
Attila Györffy 1ad693a3a6 Fix docs in ActionController::Caching::Actions 2013-04-17 16:00:11 +02:00
Rafael Mendonça França c010baf363 Merge pull request #4 from vladson/master
Added code status block
2013-03-06 07:05:33 -08:00
vladson ed41c91b37 Moved code status block to the bottom of the page 2013-03-06 18:45:39 +04:00
vladson 8c6c5a8c80 Added build and dependency status icons 2013-03-06 18:18:04 +04:00
Francesco Rodriguez 74e2436061 improve AC::Caching::Actions documentation [ci skip] 2013-02-28 23:08:00 -05:00
Francesco Rodriguez 7fa261f130 improve CHANGELOG [ci skip] 2013-02-28 23:06:01 -05:00
Francesco Rodriguez b74cb2b5ca add CHANGELOG entry for #2 2013-02-28 23:01:22 -05:00
Francesco Rodriguez ccce63bbe4 add CHANGELOG [ci skip] 2013-02-28 23:01:02 -05:00
Francesco Rodríguez ab2c52ff2b Merge pull request #2 from LTe/object-with-call
Allow to use non-proc object in cache_path option
2013-02-28 19:52:18 -08:00
Rafael Mendonça França e38ab92650 Release 1.0.0
Closes #3
2013-02-28 18:45:03 -03:00
Rafael Mendonça França 6fd2c7f180 Remove the git dependecy 2013-02-28 18:45:02 -03:00
Francesco Rodriguez 78c7d1aab5 remove source :rubygems deprecation warning 2013-02-15 02:14:19 -05:00
Piotr Niełacny 11c4a0af04 Allow to use non-proc object in cache_path option
You can use :cache_path option with object that respond to #call method.
Before this patch ActionCacheFilter check that object respond to #call
method and execute #instance_exec on controller instance. It was strange
because #instance_exec method can work only with Proc objects.

When you pass Proc object to :cache_option it will be execute #instance_exec
with this Proc otherwise when object is respond to #call method will be called
on this object.

  class CachePath
    def call(controller)
      controller.id
    end
  end

  class TestController < ApplicationController
    caches_action :index, :cache_path => CachePath.new
    def index; end
  end
2013-02-09 14:16:58 +01:00
Rafael Mendonça França a594ca4d36 Fix campfire token 2013-01-28 21:42:35 -02:00
Francesco Rodriguez 05518e0116 add TravisCI config 2013-01-28 17:13:43 -05:00
Francesco Rodríguez 2881d6396b Merge pull request #1 from michiels/add-caching-allowed
Adds caching_allowed? method that has been removed from Rails core
2013-01-28 14:11:53 -08:00
Francesco Rodriguez 6b976a6fca remove Journey and AR Deprecated Finders references from the Gemfile 2013-01-28 17:05:04 -05:00
Michiel Sikkes 730674ff32 Add caching_allowed? that has been removed from Rails core 2013-01-28 22:53:49 +01:00
Michiel Sikkes d27f721176 Add test to verify if caching works with HEAD
Rails doesn't do its own GET -> HEAD translation anymore so we need to
check if caching is allowed with HEAD too.
2013-01-28 22:53:24 +01:00
Francesco Rodriguez 7f73ed1376 fix README markup 2012-10-04 12:51:46 -05:00
Francesco Rodriguez b0637aa0d0 update README 2012-10-04 12:50:15 -05:00
Francesco Rodriguez 4669a832ef %s/authors/author 2012-10-04 12:04:40 -05:00
Francesco Rodriguez f488595152 update gem description 2012-10-04 12:03:23 -05:00
Francesco Rodriguez 96b6eee12f update Gemfile 2012-10-04 12:01:24 -05:00
Francesco Rodriguez 6adc569837 Extract ActionController::Caching::Actions 2012-10-04 11:58:16 -05:00
Francesco Rodriguez 1ef9a37a61 setup gem 2012-10-04 11:33:47 -05:00
David Heinemeier Hansson cf96ca17c4 Initial commit 2012-10-04 07:05:39 -07:00