Sha256: 4c568ec31c6b454efbcacb29a4991d64e55be78a7ca82b48296749bf60a737b4
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
class RoleGroup < ActiveRecord::Base has_and_belongs_to_many :stored_permissions, join_table: '<%= group_pms_tb %>', foreign_key: :<%= permission_u %>_id, class_name: '<%= permission_c %>', association_foreign_key: :<%= group_u %>_id has_and_belongs_to_many :members, join_table: '<%= group_role_tb %>', foreign_key: :<%= role_u %>_id, class_name: '<%= role_c %>', association_foreign_key: :<%= group_u %>_id act_as_role_group # default_scope { with_members.with_stored_permissions) } end __END__ string :name, null: false string :desc index :name, unique: true
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i_am_i_can-3.0.0 | lib/generators/i_am_i_can/templates/models/role_group.erb |