rubocop 2: the reckoning

This commit is contained in:
Thomas Reynolds 2014-04-29 10:44:24 -07:00
parent 04dc48f13d
commit 8eabe4d354
62 changed files with 328 additions and 363 deletions

View file

@ -48,7 +48,7 @@ module Middleman
app.extend ClassMethods
app.send :include, InstanceMethods
app.delegate :configure, :to => :"self.class"
app.delegate :configure, to: :"self.class"
end
alias_method :included, :registered
end
@ -95,6 +95,7 @@ module Middleman
#
# @param [Symbol, Module] ext Which extension to activate
# @return [void]
# rubocop:disable BlockNesting
def activate(ext, options={}, &block)
ext_module = if ext.is_a?(Module)
ext