Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db301ad

Browse files
committed
update documentation
1 parent 5ce7d10 commit db301ad

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/active_admin/xls/builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Builder
1010
# @param [Class] resource_class The resource this builder generate column
1111
# information for.
1212
# @param [Hash] options the options for the builder
13-
# @option options [Hash] :header_format a hash of format properties to
13+
# @option options [Hash] :header_format A hash of format properties to
1414
# apply to the header row. Any properties specified will be merged with
1515
# the default header styles.
1616
# @option options [Array] :i18n_scope the I18n scope to use when looking

lib/active_admin/xls/resource_controller_extension.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def xls_filename
5151
end
5252

5353
# Returns the collection to use when generating an xls file.
54-
# It uses the find_collection function if it is available, and uses
55-
# collection if find_collection isn't available.
5654
def xls_collection
5755
find_collection except: :pagination
5856
end

spec/support/rails_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def set_id
9393
after: "config.cache_classes = true\n"
9494
)
9595

96-
lib_path = File.expand_path('../../../lib/activeadmin-xls', __FILE__)
9796
# Add our local Active Admin to the load path
97+
lib_path = File.expand_path('../../../lib/activeadmin-xls', __FILE__)
9898
inject_into_file 'config/environment.rb',
9999
"\nrequire '#{lib_path}'\n",
100100
after: "require File.expand_path('../application', __FILE__)"

0 commit comments

Comments
 (0)