Sha256: f4f9273ca723ef0dca73b5f6262fc8ab89c18c1cf72a1d6acac13e492a162278

Contents?: true

Size: 471 Bytes

Versions: 11

Compression:

Stored size: 471 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
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
admin_it-1.0.11 lib/admin_it/data/data_behavior.rb
admin_it-1.0.10 lib/admin_it/data/data_behavior.rb
admin_it-1.0.9 lib/admin_it/data/data_behavior.rb
admin_it-1.0.8 lib/admin_it/data/data_behavior.rb
admin_it-1.0.7 lib/admin_it/data/data_behavior.rb
admin_it-1.0.6 lib/admin_it/data/data_behavior.rb
admin_it-1.0.5 lib/admin_it/data/data_behavior.rb
admin_it-1.0.4 lib/admin_it/data/data_behavior.rb
admin_it-1.0.3 lib/admin_it/data/data_behavior.rb
admin_it-1.0.2 lib/admin_it/data/data_behavior.rb
admin_it-1.0.1 lib/admin_it/data/data_behavior.rb