Created
December 21, 2022 13:40
-
-
Save doolin/89c8a11806075369399f732aad577609 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Order | |
include ActiveModel::Validations | |
attr_reader :name | |
validates :name, presence: true | |
def initialize(name) | |
@name = name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment