class Tiddle::ModelName

Public Instance Methods

with_dashes(model) click to toggle source
# File lib/tiddle/model_name.rb, line 7
def with_dashes(model)
  with_underscores(model).dasherize
end
with_underscores(model) click to toggle source
# File lib/tiddle/model_name.rb, line 3
def with_underscores(model)
  model.model_name.to_s.underscore.upcase
end