lib/relevance/tarantula/form.rb in tarantula-0.2.0 vs lib/relevance/tarantula/form.rb in tarantula-0.3.3

- old
+ new

@@ -1,10 +1,12 @@ class Relevance::Tarantula::Form extend Forwardable def_delegators("@tag", :search) - def initialize(tag) - @tag = tag + attr_accessor :crawler, :referrer + + def initialize(tag, crawler, referrer) + @tag, @crawler, @referrer = tag, crawler, referrer end def action @tag['action'].downcase end