Module: MerbAdmin::AbstractModel::GenericSupport

Defined in:
lib/generic_support.rb

Instance Method Summary collapse

Instance Method Details

#pretty_nameObject



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

def pretty_name
  model.to_s.snake_case.gsub('_', ' ').capitalize
end

#to_paramObject



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

def to_param
  model.to_s.snake_case
end