Update base.rb

Added spare_from_ransack method with helpers