3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/generators/active_admin/codigo5_signature/codigo5_signature_generator.rb', line 3
def inject_into_initializer_file
inject_into_file 'config/initializers/active_admin.rb', after: /(?:.*)\.include_default_association_filters(?:\s*)\=(?:.*)\n/i do <<-'RUBY'
# == Codigo5 Signature
#
# Codigo5 Signature is enabled by default in the footer.
#
# You can disable it from here
#
# config.codigo5_signature false
#
# or you can control the widget options from here
#
# config.codigo5_signature do |widget|
# widget.theme = 'dark'
# widget.logo_width = 200
# widget.logo_height = 49
# end
RUBY
end
end
|