Sha256: 5f945565c59d81751479036e04cd26882b625b9cf8c96a573e417089732c94b0

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

require_relative 'models/profile'
require_relative 'helpers/policies_helper'

module Scidea
  module Hsfc
    module Policies
      class Engine < ::Rails::Engine

        initializer "scidea.hsfc.policies.register_view_callbacks" do
          Scidea::Plugins::Plugin.on(:registration_new_before_profile) { 'registrations/hsfc_policies' }
        end

        config.to_prepare do
          Profile.class_eval { include Scidea::Hsfc::Policies::Models::Profile }

          PluginsHelper.class_eval { include Scidea::Hsfc::Policies::Helpers::PoliciesHelper }
        end

      end # class Engine
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scidea-hsfc-policies-0.0.3 lib/scidea/hsfc/policies/engine.rb
scidea-hsfc-policies-0.0.2 lib/scidea/hsfc/policies/engine.rb
scidea-hsfc-policies-0.0.1 lib/scidea/hsfc/policies/engine.rb