Configuration based condition building and inclusion handling extension for ActiveRecord::Base