Class: Realiser::Setting

Inherits:
ApplicationRecord show all
Defined in:
app/models/realiser/setting.rb

Overview

The Realiser Setting

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



7
8
9
# File 'app/models/realiser/setting.rb', line 7

def self.[](key)
  find_by(key: key).try(:value)
end