Skip to content

Instantly share code, notes, and snippets.

@benphelps
Created August 28, 2012 00:18
Show Gist options
  • Save benphelps/3493708 to your computer and use it in GitHub Desktop.
Save benphelps/3493708 to your computer and use it in GitHub Desktop.
class ArmorTier < ActiveRecord::Base
attr_accessible :agility, :deviation, :intellect, :level, :name, :stamina, :strength
belongs_to :armor_material
def agility
self.agility + rand(deviation)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment