Class: RailsuiIcon::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- RailsuiIcon::Railtie
- Defined in:
- lib/railsui_icon/railtie.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.post_install_message ⇒ Object
31 32 33 |
# File 'lib/railsui_icon/railtie.rb', line 31 def self. puts "To configure, run: rails g railsui_icon:install" end |
Instance Method Details
#load_configuration(file_path) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/railsui_icon/railtie.rb', line 13 def load_configuration(file_path) if File.exist?(file_path) config = Rails.application.config.railsui_icon config_contents = File.read(file_path) config.instance_eval(config_contents) end end |