Sha256: 55982d456d64d67dce16aab2814e08e2a7d81e1f9bb02b198a15d2097deed4a9
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 Bytes
Contents
require 'haml-rails' require 'kaminari' require 'simple_form' require 'effective_resources' require 'effective_datatables/engine' require 'effective_datatables/version' module EffectiveDatatables mattr_accessor :authorization_method mattr_accessor :default_length mattr_accessor :actions_column # A Hash mattr_accessor :google_chart_packages 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
5 entries across 5 versions & 1 rubygems