Created
October 10, 2016 08:31
-
-
Save anonymous/a0c63e46da467bf7ab31551f9697c545 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 BaseModel | |
@user_visible_fields = [:id] | |
@user_editable_fields = [] | |
attr_accessor :user_visible_fields,:user_editable_fields | |
end | |
class User < BaseModel | |
@user_visible_fields += [:user_name] | |
@user_editable_fields += [:user_name] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment