Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # in /app/controllers/foo_controller.rb
- class FooController < ApplicationController
- active_scaffold :data
- end
- # in /vendor/plugins/active_scaffold/lib/actions/list.rb
- module ActiveScaffold::Actions
- module LiveSearch
- def do_search
- self.active_scaffold_conditions = blah blah...
- puts self # returns instance of FooController
- end
- end
- end
- # in /vendor/plugins/active_scaffold/frontends/default/views/_export_csv.rhtml
- # I want to access that same instance of FooController, but:
- puts self # returns instance of ActionView::Base
Add Comment
Please, Sign In to add comment