Class: Tiddle::ModelName

Inherits:
Object
  • Object
show all
Defined in:
lib/tiddle/model_name.rb

Instance Method Summary collapse

Instance Method Details

#with_dashes(model) ⇒ Object



8
9
10
# File 'lib/tiddle/model_name.rb', line 8

def with_dashes(model)
  with_underscores(model).dasherize
end

#with_underscores(model) ⇒ Object



4
5
6
# File 'lib/tiddle/model_name.rb', line 4

def with_underscores(model)
  model.model_name.to_s.underscore.upcase
end