lib/it/link.rb in it-1.0.0 vs lib/it/link.rb in it-2.0.0
- old
+ new
@@ -5,10 +5,10 @@
attr_reader :href
# See It.link for details. You can do everything there and save 6 characters.
def initialize(href, options = {})
- raise TypeError, 'Invalid href given' unless [Hash, String].include?(href.class)
+ raise TypeError, 'Invalid href given' unless [Hash, String, ActiveSupport::SafeBuffer].include?(href.class)
super(:a, options)
@href = href
end