diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-28 11:00:31 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-28 11:00:31 +0100 |
commit | 07b8c95e66d8709b4bfbc52443ea227ff43097db (patch) | |
tree | 6df1aaa9ec4e787b1c09ee1e2e739ed315e18f30 /lib | |
parent | e936b687a7df62dc69d1cc0493492346bd8e300a (diff) | |
parent | 0d25d79a48ea227ec685e44ec22990e1da748972 (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'lib')
-rw-r--r-- | lib/acts_as_xapian/tasks/xapian.rake | 2 | ||||
-rw-r--r-- | lib/attachment_to_html/adapter.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/acts_as_xapian/tasks/xapian.rake b/lib/acts_as_xapian/tasks/xapian.rake index c1986ce1e..52d94011a 100644 --- a/lib/acts_as_xapian/tasks/xapian.rake +++ b/lib/acts_as_xapian/tasks/xapian.rake @@ -9,7 +9,7 @@ namespace :xapian do # "verbose=true" to print model name as it is run. desc 'Updates Xapian search index with changes to models since last call' task :update_index => :environment do - ActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false) + ActsAsXapian.update_index(ENV['flush'], ENV['verbose']) end # Parameters - specify 'models="PublicBody User"' to say which models diff --git a/lib/attachment_to_html/adapter.rb b/lib/attachment_to_html/adapter.rb index d8b9f41f7..058fb2a01 100644 --- a/lib/attachment_to_html/adapter.rb +++ b/lib/attachment_to_html/adapter.rb @@ -41,7 +41,7 @@ module AttachmentToHTML end def contains_images? - !!body.match(/<img[^>]*>/mi) + body.match(/<img[^>]*>/mi) end def create_tempfile(text) |