lib/rooftop/content/collection.rb in rooftop-0.0.7.4 vs lib/rooftop/content/collection.rb in rooftop-0.1.1
- old
+ new
@@ -32,9 +32,11 @@
def field_names
collect(&:name)
end
+ alias_method :names, :field_names
+
def method_missing(method, *args, &block)
fields = named(method)
if fields.length > 0
fields.first.value
else