Last active
January 29, 2019 10:39
-
-
Save elithecho/c9178730f4e8660d0cd3c06d8ae2b1d8 to your computer and use it in GitHub Desktop.
BaseForm
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 BaseForm | |
include ActiveModel::Model | |
include ActiveModel::Validations | |
def initialize(params={}) | |
super(params) | |
end | |
end |
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 ProfileForm < BaseForm | |
def initialize(user, params={}) | |
@user = user | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment