Sha256: 4558ab4479658783341d7604ee437a58ff8aac3be74ed539edfe1c5022c3b6e0
Contents?: true
Size: 748 Bytes
Versions: 14
Compression:
Stored size: 748 Bytes
Contents
require 'kaminari' require 'migrant' # Required for rspec to run properly require "effective_posts/engine" module EffectivePosts mattr_accessor :posts_table_name mattr_accessor :authorization_method mattr_accessor :simple_form_options mattr_accessor :layout mattr_accessor :categories mattr_accessor :use_category_routes mattr_accessor :per_page mattr_accessor :post_meta_author def self.setup yield self end def self.authorized?(controller, action, resource) if authorization_method.respond_to?(:call) || authorization_method.kind_of?(Symbol) raise Effective::AccessDenied.new() unless (controller || self).instance_exec(controller, action, resource, &authorization_method) end true end end
Version data entries
14 entries across 14 versions & 1 rubygems