Class: PermalinkChangeableMockModel
- Defined in:
- lib/permalink_fu/test/permalink_fu_test.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseModel
Class Method Details
.exists?(conditions) ⇒ Boolean
376 377 378 379 380 381 382 |
# File 'lib/permalink_fu/test/permalink_fu_test.rb', line 376 def self.exists?(conditions) if conditions[1] == 'foo' true else false end end |
Instance Method Details
#permalink_changed? ⇒ Boolean
386 387 388 |
# File 'lib/permalink_fu/test/permalink_fu_test.rb', line 386 def permalink_changed? @permalink_changed end |
#permalink_will_change! ⇒ Object
390 391 392 |
# File 'lib/permalink_fu/test/permalink_fu_test.rb', line 390 def permalink_will_change! @permalink_changed = true end |