Permalink
Browse files

Enable & correct Lint/EndAlignment cop

  • Loading branch information...
deivid-rodriguez committed May 8, 2017
1 parent 7480b24 commit db1ab07a22975c721e23a630a3a5cbc9707b728a
View
@@ -17,6 +17,9 @@ AllCops:
StyleGuideCopsOnly: false
Lint/EndAlignment:
Enabled: true
Style/CaseIndentation:
Enabled: true
@@ -26,7 +26,7 @@ def set_current_tab
end
else
active_admin_config.menu_item
end
end
end
end
View
@@ -51,7 +51,7 @@ def add(options)
(self[parent] || add(label: parent)).add options
else
_add options.merge parent: self
end
end
yield(item) if block_given?
@@ -239,7 +239,7 @@ def current_scope
active_admin_config.get_scope_by_id(params[:scope])
else
active_admin_config.default_scope(self)
end
end
end
def apply_pagination(chain)
@@ -195,7 +195,7 @@ def decorate_with(decorator_class)
[:action]
else
[:action, :filter]
end
end
keywords.each do |name|
phases.each do |action|
@@ -44,7 +44,7 @@ def build(*args)
if status
content = label || if s = status.to_s and s.present?
I18n.t "active_admin.status_tag.#{s.downcase}", default: s.titleize
end
end
end
super(content, options)
@@ -75,6 +75,6 @@ def default_number_of_columns
3
end
end
end
end
end
@@ -30,7 +30,7 @@ def attributes_table(*args, &block)
render_or_call_method_or_proc_on(resource, opts[:title])
else
ActiveAdmin::Localizers.resource(active_admin_config).t(:details)
end
end
panel(table_title) do
attributes_table_for resource, *args, &block
end
@@ -32,7 +32,7 @@ def build_breadcrumb(separator = "/")
instance_exec(controller, &active_admin_config.breadcrumb)
elsif breadcrumb_config.present?
breadcrumb_links
end
end
return unless links.present? && links.is_a?(::Array)
span class: "breadcrumb" do
links.each do |link|

0 comments on commit db1ab07

Please sign in to comment.