Permalink
Browse files

memoize decorator dependency list

  • Loading branch information...
1 parent 5a0a58c commit b5b5bbe7d455e24b2b76622c67c5a1712f295cd6 @moonmaster9000 committed Aug 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/frill/frill.rb
View
@@ -7,10 +7,11 @@ def self.included(base)
end
def self.decorators
- list.to_a
+ @decorators ||= list.to_a
end
def self.reset!
+ @decorators = nil
@list = nil
end

0 comments on commit b5b5bbe

Please sign in to comment.