Sha256: 8d45be5bbc5dccd096d9caab61e9fb01e029c37c6c546638526340a28af19412
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
module IAmICan class Config attr_accessor :subject_model, :role_model, :role_group_model, :permission_model, :auto_define_before, :strict_mode, :without_group, :default_save def initialize(**options) self.auto_define_before = false self.strict_mode = false self.without_group = false self.default_save = true options.each { |(key, val)| self.send("#{key}=", val) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
i_am_i_can-3.0.0pre | lib/i_am_i_can/config.rb |
i_am_i_can-2.1.0 | lib/i_am_i_can/config.rb |