lib/generators/templates/app/helpers/beautiful_helper.rb in beautiful_scaffold-0.3.0.rc6 vs lib/generators/templates/app/helpers/beautiful_helper.rb in beautiful_scaffold-0.3.1
- old
+ new
@@ -247,10 +247,10 @@
end
def build_treeview(obj, child_relation, caption_method = "caption")
out = '
<li id="treeelt_' + obj.id.to_s + '" data-id="' + obj.id.to_s + '">
- <a href="#" class="nopjax">' + obj.send(caption_method).to_s + '</a>
+ <a href="#">' + obj.send(caption_method).to_s + '</a>
<ul>'
ar = obj.send(child_relation.to_sym)
ar = ar.order('position') if obj.class.column_names.include?("position")
for o in ar.all
out += build_treeview(o, child_relation, caption_method)