Skip to content

Instantly share code, notes, and snippets.

@stefanoverna
Created May 9, 2012 07:35
Show Gist options
  • Select an option

  • Save stefanoverna/2642705 to your computer and use it in GitHub Desktop.

Select an option

Save stefanoverna/2642705 to your computer and use it in GitHub Desktop.
ActiveAttr on Railsyard
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