Sha256: 6cbec1216266278d64cb23ed99fbf711fd66bf87d63858671d773f266f7102d1

Contents?: true

Size: 333 Bytes

Versions: 9

Compression:

Stored size: 333 Bytes

Contents

class Foo < ActiveRecord::Base
  has_many :bars
  
  liquid_methods :active, :created_at, :bars
  
  
  def self.active_record_finder
    self.where(true)
  end
  
  def self.array_finder
    self.where(true).to_a
  end
  
  def self.empty_finder
    []
  end
  
  def self.active_finder
    self.where(active: true)
  end
  
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rooler-0.0.11 test/dummy/app/models/foo.rb
rooler-0.0.10 test/dummy/app/models/foo.rb
rooler-0.0.9 test/dummy/app/models/foo.rb
rooler-0.0.8 test/dummy/app/models/foo.rb
rooler-0.0.7 test/dummy/app/models/foo.rb
rooler-0.0.6 test/dummy/app/models/foo.rb
rooler-0.0.5 test/dummy/app/models/foo.rb
rooler-0.0.4 test/dummy/app/models/foo.rb
rooler-0.0.3 test/dummy/app/models/foo.rb