Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mike committed Nov 19, 2014
1 parent 9708004 commit 40d93b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/to_xls-rails.rb
Expand Up @@ -22,7 +22,7 @@ def to_xls(options = {}, &block)
if self.first.is_a? Hash
columns = self.first.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
else
columns = self.first.class.attributes.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
columns = self.first.attributes.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
end
end

Expand Down

0 comments on commit 40d93b2

Please sign in to comment.