Registry / web-framework / has-scope

has-scope

JSON →
library0.9.0rbrubygemsunverified

Maps controller filters to your resource scopes in Rails applications.

gem install has_scope
INSTALL
IMPORT
SIG · HAS-SCOPE
H
has-scope
web-frameworkrubyv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HasScope
require 'has_scope'

Define and apply scopes in a Rails controller.

require 'has_scope' class PostsController < ApplicationController has_scope :by_author, :by_date def index @posts = apply_scopes(Post).all end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
has-scope — gem install has-scope · libregistry