Created
May 9, 2012 07:35
-
-
Save stefanoverna/2642705 to your computer and use it in GitHub Desktop.
ActiveAttr on Railsyard
This file contains hidden or 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 GlobalSettings | |
| include ActiveAttr::Model | |
| def self.instance | |
| @instance ||= self.new | |
| end | |
| def self.i18n_scope | |
| "activerecord" | |
| end | |
| def id | |
| "instance" | |
| end | |
| def persisted? | |
| true | |
| end | |
| attribute :footer_content, type: String | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment