Class: ScopedModelForNilScope

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)


416
417
418
# File 'lib/permalink_fu/test/permalink_fu_test.rb', line 416

def self.exists?(conditions)
  (conditions[0] == 'permalink = ? and foo IS NULL') ? (conditions[1] == 'ack') : false
end