module QuietLeightbox::ClassMethods

Define the “#uses_leightbox” controller method.

Public Instance Methods

uses_leightbox( filter_options = {} ) click to toggle source
# File lib/quiet_leightbox/quiet_leightbox.rb, line 16
def uses_leightbox( filter_options = {} )
  proc = Proc.new do | c |
    c.instance_variable_set( :@uses_leightbox, true )
  end

  before_filter( proc, filter_options )
end