Skip to content

Commit

Permalink
Now we can use an exceptions file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Flores committed Feb 14, 2011
1 parent 9096ee3 commit 282a69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readability.rb
Expand Up @@ -394,7 +394,7 @@ def rules
if @base_uri =~ /^www\.(.*)$/
@base_uri = $1
end
@rules ||= YAML.load_file(File.dirname(__FILE__) + "/../special_rules.yml")["sites"]
@rules ||= YAML.load_file(options[:exceptions_file] || File.dirname(__FILE__) + "/../special_rules.yml")["sites"]
end

def apply_custom_rule
Expand Down

0 comments on commit 282a69b

Please sign in to comment.