Skip to content

Instantly share code, notes, and snippets.

@ainame
Last active September 17, 2015 13:31
Show Gist options
  • Save ainame/b8b32e1586f3e4cf5b03 to your computer and use it in GitHub Desktop.
Save ainame/b8b32e1586f3e4cf5b03 to your computer and use it in GitHub Desktop.
.idがidenitityを提供するということを示すmixinモジュールの名前どれが良いか
# 1
class Coriander
include MyApp::Entity::HasId
end
# 2
class Coriander
include MyApp::Entity::Identifiable
end
# 3
class Coriander
include MyApp::Entity::Equatable
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment