Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 231 Bytes
module MerbAdmin
class AbstractModel
module GenericSupport
def to_param
model.to_s.snake_case
end
def pretty_name
model.to_s.snake_case.gsub('_', ' ').capitalize
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.