Skip to content

Instantly share code, notes, and snippets.

@BrandAndCelebrities
Last active November 23, 2015 14:45
Show Gist options
  • Save BrandAndCelebrities/8d555a6e8d6ac8e7502a to your computer and use it in GitHub Desktop.
Save BrandAndCelebrities/8d555a6e8d6ac8e7502a to your computer and use it in GitHub Desktop.
class MyKlass
  include
  CONSTANTS
  belongs_to
  has_one
  has_many
  accepts_nested_attributes_for
  attr_accessible
  validates
  scopes
  call_backs
  
  workflow
  searchable
  
  ...

end

Don't respect this order, and your soul will burn in hell for centuries !

@francois-blanchard
Copy link

Il faut rajouter mount_uploader et attr_accessor 😄

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