Skip to content

Instantly share code, notes, and snippets.

@SeanRoberts
Created May 9, 2011 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeanRoberts/962763 to your computer and use it in GitHub Desktop.
Save SeanRoberts/962763 to your computer and use it in GitHub Desktop.
class Invite
attr_accessor :csv
def initialize(csv)
@csv = csv
end
def import!
# your method
end
end
# in the controller
def uploaded
i = Invite.new(params[:csv])
i.import!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment