module PushRoute
TODO: Cacheing can work because controllers return the renderd values, just need to wrap/alias the controller actions
Public Class Methods
inherited(subclass)
click to toggle source
Computed this way when mixed in to the controller base class
Calls superclass method
# File lib/push_routes/push_route.rb, line 14 def self.inherited(subclass) subclass.push_routes = {} subclass.trigger_symbols = [] # controller_matches = caller[0].match(/^.*?\/app\/controllers\/(.*?)_controller.rb:/) # if controller_matches # # subclass.controller_path = controller_matches[1] # else # # Happens with rspec test cases # # this might not be the best thing to do with this case # puts "Warning: No standard controller path found for #{subclass.inspect}" # end super end