lib/cieloz/helpers.rb in cieloz-0.0.19 vs lib/cieloz/helpers.rb in cieloz-0.0.20
- old
+ new
@@ -78,7 +78,12 @@
attrs.each {|k,v|
m = "#{k}="
send(m, v) if respond_to? m
}
end
+
+ def dasherize_attr value
+ value.to_s.gsub("@", "").dasherize
+ end
+
end
end