Class: Tomify::Setting::Boolean

Inherits:
Tomify::Setting show all
Defined in:
app/models/tomify/setting/boolean.rb

Instance Method Summary collapse

Methods inherited from Tomify::Setting

for_env, required_settings

Instance Method Details

#valueObject



4
5
6
# File 'app/models/tomify/setting/boolean.rb', line 4

def value
  super == "true"
end

#value=(v) ⇒ Object



8
9
10
# File 'app/models/tomify/setting/boolean.rb', line 8

def value=(v)
  super(v.to_s)
end