Skip to content

Instantly share code, notes, and snippets.

@pyrat
Created May 21, 2009 13:37
Show Gist options
  • Save pyrat/115464 to your computer and use it in GitHub Desktop.
Save pyrat/115464 to your computer and use it in GitHub Desktop.
#temporary deposit helper
def damage_deposit(ref)
Property.establish_connection(:efp)
@Eprop = Property.find(:first, :conditions=>["Prop=?", ref.slice(0,3)])
if [email protected]?
@Eprop.Prop_DD.to_i
else
100
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment