Sha256: 56eb08cecc4afcf5c2068fdacf93b1fd5caf06f64ed030d93aa73cc046175783

Contents?: true

Size: 244 Bytes

Versions: 2

Compression:

Stored size: 244 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 lib/generic_support.rb
merb-admin-0.8.3 lib/generic_support.rb