Sha256: b998a932b6bac9087cf5835779f6650af45127aa162cf851d9c03405c05af9f0

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

Rails.configuration.to_prepare do
  begin
    puts "Including Model::Ecm::Rbac::UserConcern in #{Ecm::Rbac.user_class_name}"
    Ecm::Rbac.user_class_name.constantize.class_eval do
      include Model::Ecm::Rbac::UserConcern
    end
  rescue NameError => e
    "Could not include Model::Ecm::Rbac::UserConcern into #{Ecm::Rbac.user_class_name}. Error: #{e.message}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecm_rbac-2.0.0 config/initializers/inject_user_concern.rb