Sha256: adf711b93cc0189d09fc3e118757aa6ea7a4298476ce9f129a154680e7a2a6ba
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
module MagicLamp class LintController < MagicLamp::ApplicationController def index config_errors? && return errors = MagicLamp.lint_fixtures file_errors?(errors) && return fixture_errors?(errors) && return render :no_errors end private def file_errors?(errors) @file_errors = errors[:files] render :file_errors if @file_errors.present? @file_errors.present? end def fixture_errors?(errors) @fixture_errors = errors[:fixtures] render :fixture_errors if @fixture_errors.present? @fixture_errors.present? end def config_errors? @config_errors = MagicLamp.lint_config if @config_errors.present? if @config_errors[:config_file_load] render :config_file_load_error else render :callback_errors end end @config_errors.present? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magic_lamp-1.5.0 | app/controllers/magic_lamp/lint_controller.rb |