Sha256: 460d411b2705723ec5724165ec3145817e8b020c01c7e625f87d96b4627af2aa

Contents?: true

Size: 489 Bytes

Versions: 19

Compression:

Stored size: 489 Bytes

Contents

module AdminIt
  #
  module DataBehavior
    private

    def import_data_module(base)
      @data_module = AdminIt.data_module(@entity_class)
      return unless @data_module.is_a?(Module)
      parents.reverse.each do |mod|
        next if mod.name.nil?
        begin
          import_module = @data_module.const_get(mod.name.split('::').last)
          include(import_module) if import_module.is_a?(Module)
        rescue NameError
          nil
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
admin_it-1.3.8 lib/admin_it/data/data_behavior.rb
admin_it-1.3.7 lib/admin_it/data/data_behavior.rb
admin_it-1.3.6 lib/admin_it/data/data_behavior.rb
admin_it-1.3.5 lib/admin_it/data/data_behavior.rb
admin_it-1.3.4 lib/admin_it/data/data_behavior.rb
admin_it-1.3.3 lib/admin_it/data/data_behavior.rb
admin_it-1.3.2 lib/admin_it/data/data_behavior.rb
admin_it-1.3.1 lib/admin_it/data/data_behavior.rb
admin_it-1.3.0 lib/admin_it/data/data_behavior.rb
admin_it-1.2.8 lib/admin_it/data/data_behavior.rb
admin_it-1.2.7 lib/admin_it/data/data_behavior.rb
admin_it-1.2.6 lib/admin_it/data/data_behavior.rb
admin_it-1.2.5 lib/admin_it/data/data_behavior.rb
admin_it-1.2.4 lib/admin_it/data/data_behavior.rb
admin_it-1.2.3 lib/admin_it/data/data_behavior.rb
admin_it-1.2.2 lib/admin_it/data/data_behavior.rb
admin_it-1.2.1 lib/admin_it/data/data_behavior.rb
admin_it-1.2.0 lib/admin_it/data/data_behavior.rb
admin_it-1.1.0 lib/admin_it/data/data_behavior.rb