Class: MockModel

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/permalink_fu/test/permalink_fu_test.rb

Class Method Summary collapse

Methods inherited from BaseModel

column

Class Method Details

.exists?(conditions) ⇒ Boolean

Returns:

  • (Boolean)


363
364
365
366
367
368
369
370
# File 'lib/permalink_fu/test/permalink_fu_test.rb', line 363

def self.exists?(conditions)
  if conditions[1] == 'foo'   || conditions[1] == 'bar' || 
    (conditions[1] == 'bar-2' && conditions[2] != 2)
    true
  else
    false
  end
end