lib/bemer/entity_builder.rb in bemer-0.2.0 vs lib/bemer/entity_builder.rb in bemer-0.3.0
- old
+ new
@@ -5,10 +5,10 @@
module Bemer
class EntityBuilder < Entity
def attrs
attributes = Hash[super]
- attributes[:class] = cls
+ attributes[:class] = cls if cls.present?
return attributes unless bem?
attributes.merge!(js)
end