Sha256: d1aaf383e41d248fc92409b75fd2be98f46fb08d6ede6ffd2dfbf7ba294c122f
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
require "rails/railtie" module MyGem class Railtie < Rails::Railtie #add uma funcionalidade a um app rails a partir de uma gem initializer "material_design.action_controller" do ActiveSupport.on_load(:action_controller_base) do #quando a base controller for carregada helper MaterialDesign::ButtonHelper #disponibiliza o helper em todos os arquivos end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
material_design-0.8.0 | lib/material_design/railtie.rb |
material_design-0.7.0 | lib/material_design/railtie.rb |
material_design-0.6.2 | lib/material_design/railtie.rb |