lib/rich/cms/content/item.rb in rich_cms-2.0.0 vs lib/rich/cms/content/item.rb in rich_cms-2.0.1
- old
+ new
@@ -43,10 +43,10 @@
hash.merge({:__selector__ => selector, :__identifier__ => identifier})
end
def to_tag(options = {})
- tag = options[:tag] || @group.tag || :span
+ tag = options[:tag] || @group.tag || :div
attrs = []
default = @group.identifiers.size == 1 ? @object.send(@group.identifiers.first) : @object.attributes.values_at(*@group.identifiers).inspect
value = @object.send(@group.value)