app/models/styleus/view_component.rb in styleus-0.0.11 vs app/models/styleus/view_component.rb in styleus-0.0.12
- old
+ new
@@ -7,9 +7,13 @@
# TODO: make sure the uid-ness :)
def id
headline.underscore.gsub(/ /, '_')
end
+ def to_s
+ headline.humanize.pluralize
+ end
+
class << self
def components
@components ||= []
end
\ No newline at end of file