Sha256: 5c0c876437178bf85f2a17d65fd4065b8401e614b0440ed088ec7290bfcd46fa

Contents?: true

Size: 235 Bytes

Versions: 6

Compression:

Stored size: 235 Bytes

Contents

module Worthwhile
  class ControllerResource < CanCan::ControllerResource
    protected

    # Override resource_params to make this a nop. Worthwhile uses actors to assign attributes
    def resource_params
      {}
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 lib/worthwhile/controller_resource.rb
worthwhile-0.1.1 lib/worthwhile/controller_resource.rb
worthwhile-0.1.0 lib/worthwhile/controller_resource.rb
worthwhile-0.0.3 lib/worthwhile/controller_resource.rb
worthwhile-0.0.2 lib/worthwhile/controller_resource.rb
worthwhile-0.0.1 lib/worthwhile/controller_resource.rb