Permalink
Browse files

Added Bin::Store back in for backwards compat.

  • Loading branch information...
1 parent f5c7fe3 commit 3da092ab4a5cb9f4ee04e7017fbe35387534b877 @jnunemaker committed Sep 17, 2011
Showing with 8 additions and 0 deletions.
  1. +4 −0 lib/bin.rb
  2. +4 −0 spec/bin_spec.rb
View
@@ -1 +1,5 @@
require 'active_support/cache/bin'
+
+module Bin
+ Store = ActiveSupport::Cache::Bin
+end
View
@@ -7,6 +7,10 @@
it "has a collection" do
store.collection.should == collection
end
+
+ it "should also work with Bin::Store for backwards compat" do
+ Bin::Store.should == ActiveSupport::Cache::Bin
+ end
it "defaults expires_in to 1.year" do
store.expires_in.should == 1.year

0 comments on commit 3da092a

Please sign in to comment.