Skip to content

Instantly share code, notes, and snippets.

@darkofabijan
Forked from miloshadzic/user.rb
Created February 22, 2012 12:39
Show Gist options
  • Save darkofabijan/1884864 to your computer and use it in GitHub Desktop.
Save darkofabijan/1884864 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
def forms
Form.where(:company => company)
end
def find_form(id)
forms.find(id)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment