method

evaluate_init_rb

rails latest stable - Class: Rails::Plugin

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

evaluate_init_rb(initializer)
private

No documentation available.

# File railties/lib/rails/plugin.rb, line 152
      def evaluate_init_rb(initializer)
        if has_init_file?
          silence_warnings do
            # Allow plugins to reference the current configuration object
            config = initializer.configuration
            
            eval(IO.read(init_path), binding, init_path)
          end
        end
      end