Module: EngineRoom::RecordMethods
- Defined in:
- lib/engine_room/active_record/record_methods.rb
Instance Method Summary collapse
-
#object_to_boolean(value) ⇒ Object
def current_user current_er_devise_user end.
Instance Method Details
#object_to_boolean(value) ⇒ Object
def current_user
current_er_devise_user
end
13 14 15 |
# File 'lib/engine_room/active_record/record_methods.rb', line 13 def object_to_boolean(value) return [true, "true", 1, "1", "T", "t"].include?(value.class == String ? value.downcase : value) end |