Skip to content

Instantly share code, notes, and snippets.

@miloshadzic
Created February 22, 2012 12:13
Show Gist options
  • Save miloshadzic/1884553 to your computer and use it in GitHub Desktop.
Save miloshadzic/1884553 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