Sha256: ba5d10069fe836f6100605ae20d36a585db8a6d6c02f2a82106cbaebd4acc836
Contents?: true
Size: 800 Bytes
Versions: 32
Compression:
Stored size: 800 Bytes
Contents
require 'haml-rails' require 'kaminari' require 'simple_form' 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 :boolean_format mattr_accessor :default_entries 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
32 entries across 32 versions & 1 rubygems