Sha256: 583a6b69297a13ce6a5fc06b25208f16e06d96bb7f469cf8db6cf503a55236a1
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
module ActionDispatch::Routing class Mapper def governate(*resources) options = resources.extract_options! resources.map!(&:to_sym) resources.each do |resource| mapping = Governor.map(resource, options) resources mapping.resource, :controller => mapping.controller, :governor_mapping => resource end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
governor-0.1.1 | lib/governor/rails/routes.rb |
governor-0.1.0 | lib/governor/rails/routes.rb |