lib/puffer/controller/config.rb in puffer-0.1.0 vs lib/puffer/controller/config.rb in puffer-0.1.1
- old
+ new
@@ -23,19 +23,17 @@
puffer_class_attribute :show, false
# scope - default scope name for all queries
puffer_class_attribute :scope
# order - default order option. Is a string with field name and direction. Ex: 'email', 'first_name asc', 'title desc'
puffer_class_attribute :order
+ # obviously< records per page
+ puffer_class_attribute :per_page, 30
helper_method :configuration
end
- module InstanceMethods
-
- def configuration
- self.class.configuration
- end
-
+ def configuration
+ self.class.configuration
end
module ClassMethods
def puffer_class_attribute name, default = nil