* Add settings model generator * Obey the CodeClimate overlords * Update generator * Update USAGE * Add Zeitwerk exception
13 lines
433 B
Text
13 lines
433 B
Text
module Settings
|
|
class <%= class_name %> < RailsSettings::Base
|
|
self.table_name = :<%= table_name %>
|
|
|
|
# The configuration is cached, change this if you want to force update
|
|
# the cache, or call Settings::<%= class_name %>.clear_cache
|
|
cache_prefix { "v1" }
|
|
|
|
# Define your fields
|
|
# field :host, type: :string, default: "http://localhost:3000"
|
|
# field :default_locale, default: "en", type: :string
|
|
end
|
|
end
|