save_and_open_page
have_button(locator)| # 2. Include Sweeping module in your controller(s) to have cache_sweeper | |
| # method to be avaliable, or right in ApplicationController so it will be | |
| # available in all controllers inheriting from it. | |
| class ApplicationController < ActionController::Base | |
| include ActionController::Caching::Sweeping | |
| # ... | |
| end |
| require 'celluloid' | |
| class Yo | |
| include Celluloid | |
| end | |
| puts Celluloid::Actor.all.length |
| require 'celluloid' | |
| class MyClass | |
| include Celluloid | |
| def do_some | |
| 'yo' | |
| end | |
| end | |
| a = Myclass.new |
| trans = Transaction.filter(~{:somecolumn => nil}, :send_time => nil) | |
| trans.each do |t| | |
| # do something | |
| end |
| require "celluloid" | |
| class MyClass | |
| include Celluloid | |
| def initialize | |
| @a = 0 | |
| end | |
| def do_something |