Mass Assignment Fixes

attr_accessible

fixing mass assignment
This commit is contained in:
Andrew Hooker 2012-05-01 11:47:04 -05:00
parent 2c12f39667
commit be9e259fdc
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Spree::LogEntry.class_eval do
attr_accessible :details
end

View File

@ -0,0 +1,3 @@
Spree::Payment.class_eval do
attr_accessible :source, :source_type, :response_code, :avs_response, :details
end

View File

@ -1,4 +1,5 @@
class Spree::PaypalAccount < ActiveRecord::Base
attr_accessible :email, :payer_id, :payer_country, :payer_status
has_many :payments, :as => :source
def actions