Adds several methods which help to build conditions around value presence.
Àrel::Attributes::Attribute receives several methods which help to build conditions around value presence.
# Get posts with detailed description. t = Post.arel_table posts = Post.where(t[:detailed_description].) # SELECT * FROM `posts` WHERE (`posts`.`detailed_description` IS NOT NULL AND `posts`.`detailed_description` <> '')
Add to your Gemfile:
gem 'arel-is-blank', '~> 1.0'
gem install bundler
cd arel-is-blank && bundle
cd arel-is-blank && appraisal rake test