search for: add_filter

Displaying 4 results from an estimated 4 matches for "add_filter".

2006 Jul 16
1
Rails Core Weekly July 2 - July 16
...o package and publish a gem 4. introduce freeze/unfreeze for plugins Jeremy Kemper agrees gems are a good fit. Exciting stuff. [ http://www.ruby-forum.com/topic/71523#new ] Martin is working on patch that in his opinion improves on ActionController filters. His solution could work like this: add_filter :filter => ProjectScope.new, :except => [:list,:index] class ProjectScope def filter(controller) Project.with_scope( ..etc.. ) yield end end end add_filter :filter => :project_scope, :except => [:list, :index] def project_scope yield # this w...
2007 Feb 12
0
[866] trunk/wxruby2/doc/textile/htmlwindow.txtl: Added missing methods section
...allow the user to selecttext.| </span><span class="cx"> </span><ins>+h2. Methods </ins><span class="cx"> </span><ins>+<div id="methods"> + +* "HtmlWindow.new":#HtmlWindow_wxhtmlwindow +* "HtmlWindow#add_filter":#HtmlWindow_addfilter +* "HtmlWindow#append_to_page":#HtmlWindow_appendtopage +* "HtmlWindow#get_internal_representation":#HtmlWindow_getinternalrepresentation +* "HtmlWindow#get_opened_anchor":#HtmlWindow_getopenedanchor +* "HtmlWindow#get_opened_page"...
2005 Jan 31
1
[patch] add "--ignore" option
...exit_cleanup(RERR_SYNTAX); @@ -794,6 +803,8 @@ continue; if (mflags & MATCHFLG_INCLUDE) flgs |= XFLG_DEF_INCLUDE; + else if (mflags & MATCHFLG_IGNORE) + flgs |= XFLG_DEF_IGNORE; else if (mflags & MATCHFLG_NO_PREFIXES) flgs |= XFLG_DEF_EXCLUDE; add_filter_file(listp, p, flgs); diff -ur ../rsync-HEAD-20050125-1221GMT.orig/flist.c ./flist.c --- ../rsync-HEAD-20050125-1221GMT.orig/flist.c Tue Jan 25 12:21:14 2005 +++ ./flist.c Thu Jan 27 17:12:25 2005 @@ -223,8 +223,9 @@ /* This function is used to check if a file should be included/excluded * from...
2020 Apr 06
4
[v2v PATCH 1/2] v2v: nbdkit: change base dir for nbdkit sockets/pidfiles
...g. Use the existing directory that libguestfs exposes for this, i.e. sockdir. --- v2v/nbdkit.ml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/v2v/nbdkit.ml b/v2v/nbdkit.ml index 65317f9b..46b20c9d 100644 --- a/v2v/nbdkit.ml +++ b/v2v/nbdkit.ml @@ -103,9 +103,12 @@ let add_filter_if_available cmd filter = if probe_filter filter then add_filter cmd filter else cmd let run_unix cmd = - (* Create a temporary directory where we place the socket and PID file. *) + (* Create a temporary directory where we place the socket and PID file. + * Use the libguestfs socket dire...