```ruby
Spree::CreditCard.class_eval do
  attr_accessor :name
end
```

Add attr_accessible to credit card name
user
```ruby
Spree::CreditCard.class_eval do
  attr_accessor :name
  unless Rails::VERSION::MAJOR == 4
    attr_accessible :name
  end
end
```
assistant