Skip to content

Commit

Permalink
Merge branch '122-attr-default'
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Aug 6, 2010
2 parents 0d0a07e + 459d90c commit 26fa780
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/restfulie/client/http/request_history.rb
Expand Up @@ -14,12 +14,14 @@ module HTTP #:nodoc:
module RequestHistory
include RequestBuilder

attr_accessor_with_default :max_to_remind, 10

def snapshots
@snapshots ||= []
end

def max_to_remind
10
end

def request!(method=nil, path=nil, *args)#:nodoc:
if method == nil || path == nil
raise 'History not selected' unless @snapshot
Expand Down

0 comments on commit 26fa780

Please sign in to comment.