Sha256: 1c87edfbda63c4cd734ef2965f2f540c34131d7494c756945e773a4a79027774

Contents?: true

Size: 211 Bytes

Versions: 21

Compression:

Stored size: 211 Bytes

Contents

module ActiveRecord
  class Base
    def self.find_boolean(find_type, field, value=true, *options)
      self.find(find_type,
                :conditions => ["#{field} = ?", value], *options)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
typo-5.5 lib/rails_patch/active_record.rb
typo-5.4.4 lib/rails_patch/active_record.rb
typo-5.4.3 lib/rails_patch/active_record.rb
typo-5.4.2 lib/rails_patch/active_record.rb
typo-5.4.1 lib/rails_patch/active_record.rb
typo-5.4 lib/rails_patch/active_record.rb
typo-4.1.1 lib/rails_patch/active_record.rb
typo-5.0.2 lib/rails_patch/active_record.rb
typo-4.1 lib/rails_patch/active_record.rb
typo-5.0.1 lib/rails_patch/active_record.rb
typo-5.0.3.98.1 lib/rails_patch/active_record.rb
typo-5.0 lib/rails_patch/active_record.rb
typo-5.0.3.98 lib/rails_patch/active_record.rb
typo-5.1.2 lib/rails_patch/active_record.rb
typo-5.1.1 lib/rails_patch/active_record.rb
typo-5.1.3 lib/rails_patch/active_record.rb
typo-5.1.98 lib/rails_patch/active_record.rb
typo-5.1 lib/rails_patch/active_record.rb
typo-5.2.98 lib/rails_patch/active_record.rb
typo-5.2 lib/rails_patch/active_record.rb