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



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

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

#with_underscores(model) ⇒ Object



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

def with_underscores(model)
  colon_to_underscore(model).underscore.upcase
end