class Sail::Types::ObjModel
The ObjModel
type returns the constant for a given string saved. For example:
If the saved value is +“Post”+, it will return Post
(actual class).
Public Instance Methods
to_value()
click to toggle source
# File lib/sail/types/obj_model.rb, line 14 def to_value @setting.value.constantize end