Skip to content

Commit 4f1c87c

Browse files
committed
replace i18n_scope attr_reader/attr_writer with attr_accessor
1 parent ef500c8 commit 4f1c87c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/active_admin/xls/builder.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,14 @@ def skip_header
100100
@skip_header = true
101101
end
102102

103-
# The scope to use when looking up column names to generate the
104-
# report header
105-
attr_reader :i18n_scope
106-
107103
# The I18n scope that will be used when looking up your
108104
# column names in the current I18n locale.
109105
# If you set it to [:active_admin, :resources, :posts] the
110106
# serializer will render the value at active_admin.resources.posts.title
111107
# in the current translations
112108
#
113109
# @note If you do not set this, the column name will be titleized.
114-
attr_writer :i18n_scope
110+
attr_accessor :i18n_scope
115111

116112
# The stored block that will be executed after your report is generated.
117113
#

0 commit comments

Comments
 (0)