Sha256: 90472cbbb779cbdcc2936f92268d95eac96b5f698ef492f9613399d2c77664ec

Contents?: true

Size: 808 Bytes

Versions: 18

Compression:

Stored size: 808 Bytes

Contents

module Challah
  # Included for backwards compatibility. These methods are deprecated
  # and will be removed in future versions
  module ActiveRecordExtensions
    extend ActiveSupport::Concern

    included do
      extend ClassMethods
    end

    module ClassMethods
      def challah_authorization
        ActiveSupport::Deprecation.warn("#{ self.to_s }.challah_authorization is deprecated and will be removed in future versions, use `include Challah::Authorizeable` instead")
        self.send(:include, Challah::Authorizeable)
      end

      def challah_user
        ActiveSupport::Deprecation.warn("#{ self.to_s }.challah_user is deprecated and will be removed in future versions, use `include Challah::Userable` instead")
        self.send(:include, Challah::Userable)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
challah-1.3.3 lib/challah/active_record_extensions.rb
challah-1.3.2 lib/challah/active_record_extensions.rb
challah-1.3.1 lib/challah/active_record_extensions.rb
challah-1.3.0 lib/challah/active_record_extensions.rb
challah-1.2.11 lib/challah/active_record_extensions.rb
challah-1.2.10 lib/challah/active_record_extensions.rb
challah-1.2.9 lib/challah/active_record_extensions.rb
challah-1.2.8 lib/challah/active_record_extensions.rb
challah-1.2.7 lib/challah/active_record_extensions.rb
challah-1.2.6 lib/challah/active_record_extensions.rb
challah-1.2.5 lib/challah/active_record_extensions.rb
challah-1.2.5.pre lib/challah/active_record_extensions.rb
challah-1.2.4 lib/challah/active_record_extensions.rb
challah-1.2.3 lib/challah/active_record_extensions.rb
challah-1.2.2 lib/challah/active_record_extensions.rb
challah-1.2.1 lib/challah/active_record_extensions.rb
challah-1.2.0 lib/challah/active_record_extensions.rb
challah-1.2.0.rc lib/challah/active_record_extensions.rb