Skip to content

Instantly share code, notes, and snippets.

@CodeIQ
Forked from grooves/company_user.rb
Created December 7, 2012 02:02
Show Gist options
  • Save CodeIQ/4230146 to your computer and use it in GitHub Desktop.
Save CodeIQ/4230146 to your computer and use it in GitHub Desktop.
Question 3
# coding: utf-8
class CompanyUser < ActiveRecord::Base
attr_accessible :user_id, :company_id, :position
attr_accessible :user_id, :company_id, :position, :is_admin, as: :admin
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment