Sha256: 38f589dfb5b6109f8d4be71554258f19d1204c43eaf1c44d295ed1ca28d4c9d4

Contents?: true

Size: 98 Bytes

Versions: 4

Compression:

Stored size: 98 Bytes

Contents

ActiveRecord::Base.class_eval do

  def self.these(arg)
    where(id: arg.collect_ids)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katapult-0.4.1 lib/generators/katapult/basics/templates/lib/ext/active_record/these.rb
katapult-0.4.0 lib/generators/katapult/basics/templates/lib/ext/active_record/these.rb
katapult-0.3.0 lib/generators/katapult/basics/templates/lib/ext/active_record/these.rb
katapult-0.2.0 lib/generators/katapult/basics/templates/lib/ext/active_record/these.rb