Sha256: 650ca02e6f3c96686281941ebf1749d2d4ab12a97f16ef9b3f02b3ddf3076725

Contents?: true

Size: 281 Bytes

Versions: 11

Compression:

Stored size: 281 Bytes

Contents

require "active_support/inflector"

# TheRole::ParamHelper.prepare 'hello world'

module TheRole
  module ParamHelper
    def param_prepare param
      param.to_s.parameterize.underscore
    end

    def self.prepare param
      param.to_s.parameterize.underscore
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
the_role-1.7.0 lib/the_role/param_helper.rb
the_role-1.6.9 lib/the_role/param_helper.rb
the_role-1.6.8 lib/the_role/param_helper.rb
the_role-1.6.7 lib/the_role/param_helper.rb
the_role-1.6.6 lib/the_role/param_helper.rb
the_role-1.6.5 lib/the_role/param_helper.rb
the_role-1.6.4 lib/the_role/param_helper.rb
the_role-1.6.3 lib/the_role/param_helper.rb
the_role-1.6.2 lib/the_role/param_helper.rb
the_role-1.6.1 lib/the_role/param_helper.rb
the_role-1.6.0 lib/the_role/param_helper.rb