Module: GrantFront::ClassMethods

Defined in:
lib/grant-front.rb

Instance Method Summary collapse

Instance Method Details

#mock!Object



12
13
14
15
# File 'lib/grant-front.rb', line 12

def mock!
  alias_method :keep_grant, :grant
  alias_method :grant, :mock_grant
end

#unmock!Object



17
18
19
# File 'lib/grant-front.rb', line 17

def unmock!
  alias_method :grant, :keep_grant
end