Sha256: 8e08b22a499b12367c241b0141ad91c04d5e56f178850578bef371d38987ea0c
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
has_and_belongs_to_many :<%= user_class.table_name %>, :join_table => :<%= join_table %> <% if Rails::VERSION::MAJOR < 5 %> belongs_to :resource, :polymorphic => true <% else %> belongs_to :resource, :polymorphic => true, :optional => true <% end %> validates :resource_type, :inclusion => { :in => Rolify.resource_types }, :allow_nil => true scopify
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rolify-5.2.0 | lib/generators/active_record/templates/model.rb |