rubycas / rubycas-client

Ruby client for Yale's Central Authentication Service protocol -- an open source enterprise single sign on system for web applications.
http://code.google.com/p/rubycas-client/
Other
332 stars 217 forks source link

Mass assignment error when using activerecord store #44

Open bradseefeld opened 12 years ago

bradseefeld commented 12 years ago

I believe this was a new default adopted in Rails 3.1 or 3.2. The fix is easy, however.

ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes: pgt_iou, pgt_id)

I believe we just need to:

class CasPgtiou < ActiveRecord::Base
  attr_accessible :pgt_iou, :pgt_id
end