Skip to content

Instantly share code, notes, and snippets.

@jordangraft
Last active April 22, 2016 23:46
Show Gist options
  • Save jordangraft/55766721acc9d5a2d1239ccd8297d05d to your computer and use it in GitHub Desktop.
Save jordangraft/55766721acc9d5a2d1239ccd8297d05d to your computer and use it in GitHub Desktop.
class Order < ActiveRecord::Base
# needs to return an array of strings representing method names that exist for the model
def self.optional_csv_attributes
['state']
end
def state
return 'the state'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment