Skip to content

Commit 0caccf1

Browse files
committed
Merge pull request #303 from amatsuda/wanings
Fix ruby wanings
2 parents 056fd42 + 2a073c8 commit 0caccf1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/annotate.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# ActiveSupport 3.x...
88
require 'active_support/hash_with_indifferent_access'
99
require 'active_support/core_ext/object/blank'
10-
rescue Exception => e
10+
rescue Exception
1111
# ActiveSupport 2.x...
1212
require 'active_support/core_ext/hash/indifferent_access'
1313
require 'active_support/core_ext/blank'
@@ -140,7 +140,7 @@ def self.eager_load(options)
140140
def self.bootstrap_rake
141141
begin
142142
require 'rake/dsl_definition'
143-
rescue Exception => e
143+
rescue Exception
144144
# We might just be on an old version of Rake...
145145
end
146146
require 'rake'

lib/annotate/annotate_models.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ def annotate(klass, file, header, options={})
418418

419419
unless options[exclusion_key]
420420
did_annotate = self.get_patterns(key).
421-
map { |file| resolve_filename(file, model_name, table_name) }.
422-
map { |file| annotate_one_file(file, info, position_key, options_with_position(options, position_key)) }.
421+
map { |f| resolve_filename(f, model_name, table_name) }.
422+
map { |f| annotate_one_file(f, info, position_key, options_with_position(options, position_key)) }.
423423
detect { |result| result } || did_annotate
424424
end
425425
end
@@ -567,10 +567,10 @@ def remove_annotations(options={})
567567
deannotated_klass = true if(remove_annotation_of_file(model_file_name))
568568

569569
get_patterns.
570-
map { |file| resolve_filename(file, model_name, table_name) }.
571-
each do |file|
572-
if File.exist?(file)
573-
remove_annotation_of_file(file)
570+
map { |f| resolve_filename(f, model_name, table_name) }.
571+
each do |f|
572+
if File.exist?(f)
573+
remove_annotation_of_file(f)
574574
deannotated_klass = true
575575
end
576576
end

0 commit comments

Comments
 (0)