lib/chosen_template/chooser.rb in chosen_template-0.1.0 vs lib/chosen_template/chooser.rb in chosen_template-1.0.0

- old
+ new

@@ -13,10 +13,10 @@ template_class = template_choice.to_s.classify.constantize foreign_key = "#{self.class.name.underscore}_id" template_scope = if template_class.column_names.include?(foreign_key) self.send(template_choice) else - template_class.scoped + template_class.all end template_scope.send(order_scope_name).first end end end