lib/spontaneous/plugins/styles.rb in spontaneous-0.2.0.alpha2 vs lib/spontaneous/plugins/styles.rb in spontaneous-0.2.0.alpha3

- old
+ new

@@ -62,10 +62,14 @@ end # ClassMethods # InstanceMethods def style=(style) - self.style_sid = style_to_schema_id(style) + self[:style_sid] = style_to_schema_id(style).to_s + end + + def style_sid + self[:style_sid] end # converts a symbol or string into a Schema::UID instance def style_to_schema_id(style) return nil if style.nil?