Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # plugin init.rb
- require 'plugin_modello'
- ActionController::Base.send( :include, Fragola)
- ActionController::Base.before_filter :limone
- #lib/plugin_modello.rb
- module Fragola
- def limone
- MenuItem.tipologies[:ciao] = "cane"
- end
- end
- # Working :)
Add Comment
Please, Sign In to add comment