Sha256: 3142410ee9bdfb2cb70b5927c3d07e8733f352ad4d193061955e8e4dc4bf576a

Contents?: true

Size: 354 Bytes

Versions: 27

Compression:

Stored size: 354 Bytes

Contents

module PgEngine
  module RouteHelpers
    def pg_resource(key, options = {})
      resources(key, options) do
        member do
          post :archive
          post :restore
        end
        collection do
          get :archived
          get :abrir_modal
          post :buscar
        end
        yield if block_given?
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.26 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.25 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.24 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.24.pre.5 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.24.pre.4 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.24.pre.3 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.23 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.22 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.22.pre.3 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.22.pre.2 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.22.pre.1 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.11 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.10 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.9 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.8 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.7 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.6 pg_engine/lib/pg_engine/route_helpers.rb
pg_rails-7.6.21.pre.5 pg_engine/lib/pg_engine/route_helpers.rb