Advertisement
Guest User

Untitled

a guest
Nov 29th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.18 KB | None | 0 0
  1. def conf
  2.   @conf ||= { 'foo' => { 'bar' => 'baz' } }
  3. end
  4.  
  5. def destroy
  6.   conf = nil
  7. end
  8.  
  9. def change
  10.   conf['foo']['bar'] = 'meh'
  11. end
  12.  
  13. def add
  14.   conf['foo']['abc'] = 'moo'
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement