Skip to content

Instantly share code, notes, and snippets.

@aliou
Created June 15, 2015 08:49
Show Gist options
  • Save aliou/54f0c7c8b2a5a05b81a0 to your computer and use it in GitHub Desktop.
Save aliou/54f0c7c8b2a5a05b81a0 to your computer and use it in GitHub Desktop.
class FriendlyIdSlug < ActiveRecord::Base
end
@aliou
Copy link
Author

aliou commented Jun 15, 2015

ActiveRecord automagically creates the attributes from the table fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment