Module: Sanity::TypeHelper
- Defined in:
- lib/sanity/helpers/type_helper.rb
Class Method Summary collapse
Class Method Details
.default_type(klass) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/sanity/helpers/type_helper.rb', line 5 def self.default_type(klass) return nil if klass == Sanity::Document type = klass.to_s type[0].downcase + type[1..] end |