Sha256: 3f154dc293a8b05f3010cb74babc91ade0088f87b1388f2ec097d5e68dcc8199
Contents?: true
Size: 273 Bytes
Versions: 3
Compression:
Stored size: 273 Bytes
Contents
module Canard module UserModel def acts_as_user(*args) include RoleModel options = args.extract_options!.symbolize_keys roles options[:roles] if options.has_key?(:roles) && column_names.include?(roles_attribute_name.to_s) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
canard-0.1.2 | lib/canard/user_model.rb |
canard-0.1.1 | lib/canard/user_model.rb |
canard-0.1.0 | lib/canard/user_model.rb |