Created
August 10, 2009 20:53
-
-
Save ymendel/165406 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ShopOrder < ActiveRecord::Base | |
# list of accessors we need to keep in the track | |
def accessors | |
['creditcard_type','creditcard_number','creditcard_exp_month','creditcard_exp_year','creditcard_ccv'] | |
end | |
# Fields we don't record in the database | |
attr_accessor :creditcard_type | |
attr_accessor :creditcard_number | |
attr_accessor :creditcard_exp_month | |
attr_accessor :creditcard_exp_year | |
attr_accessor :creditcard_ccv | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment