Sha256: 10560c105405afe7771e6f8b5ffe68c65842b2546f2f5349bc3195f4f77f6c83
Contents?: true
Size: 179 Bytes
Versions: 1
Compression:
Stored size: 179 Bytes
Contents
class Setting < ActiveRecord::Base validates_presence_of :name, :value def self.[](name) setting = where(name: name).first setting && setting.value end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | app/models/setting.rb |