Sha256: 72f2ed40ff820613b1fae1bda96575e124c26fc6b6f16855bb6094884ab45243
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
class Monster include Mongoid::Document # Enable Maestrano for this group maestrano_group_via :provider, :uid, :tenant do |group, maestrano| group.name = (maestrano.company_name || "Default Group name") # group.principal_email = maestrano.email # group.city = maestrano.city # group.olson_tz = maestrano.timezone # group.country_alpha2 = maestrano.country # group.currency_code = maestrano.currency # group.some_required_field = 'some-appropriate-default-value' end ## User source identification fields field :provider, type: String, default: "" field :uid, type: String, default: "" field :tenant, type: String, default: "" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
maestrano-rails-1.0.0 | test/tmp/app/models/monster.rb |
maestrano-rails-1.0.0.pre.RC3 | test/tmp/app/models/monster.rb |
maestrano-rails-1.0.0.pre.RC2 | test/tmp/app/models/monster.rb |