lib/rooftop/page.rb in rooftop-0.0.6 vs lib/rooftop/page.rb in rooftop-0.0.7.4
- old
+ new
@@ -1,10 +1,16 @@
module Rooftop
module Page
def self.included(base)
+ @page_classes ||= []
+ @page_classes << base unless @page_classes.include?(base)
base.include Rooftop::Base
base.include Rooftop::Nested
base.extend ClassMethods
+ end
+
+ def self.page_classes
+ @page_classes
end
module ClassMethods
\ No newline at end of file