Sha256: 8f046ad393b98c4e7668e135e0753cd27db041f0846ad0f36c484a5983971da0
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
require 'kaminari' require "effective_datatables/engine" require "effective_datatables/version" module EffectiveDatatables mattr_accessor :authorization_method mattr_accessor :date_format mattr_accessor :datetime_format mattr_accessor :integer_format mattr_accessor :default_entries mattr_accessor :actions_column # A Hash 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_datatables-2.1.1 | lib/effective_datatables.rb |
effective_datatables-2.1.0 | lib/effective_datatables.rb |