public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Implement new contains filter for testing strings

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2635 
567b1171-46fb-0310-a4c9-b4bef9110e78
Caged (author)
Fri Jan 05 14:57:32 -0800 2007
commit  dec8f288ace62e853e750c862a7d4542475a260e
tree    02cb4c948254139ee4f4a29900f0dcf228c58f71
parent  779a61e1ac12ccd71e006166b0e28d52f85256ad
...
56
57
58
 
 
 
 
59
60
61
...
56
57
58
59
60
61
62
63
64
65
0
@@ -56,6 +56,10 @@ module CoreFilters
0
   def assign_to_global(value, name)
0
     @context.scopes.last[name] = value ; nil
0
   end
0
+
0
+ def contains(source, text)
0
+ !source[text].nil?
0
+ end
0
 
0
   protected
0
     def liquify(*records, &block)
...
80
81
82
83
84
 
85
86
87
...
92
93
94
95
96
97
98
99
 
100
101
102
...
80
81
82
 
83
84
85
86
87
...
92
93
94
 
95
96
97
98
99
100
101
102
0
@@ -80,8 +80,8 @@ ActiveRecord::Schema.define(:version => 67) do
0
     t.column "author_email", :string
0
     t.column "author_ip", :string, :limit => 100
0
     t.column "comments_count", :integer, :default => 0
0
- t.column "updater_id", :integer
0
     t.column "version", :integer
0
+ t.column "updater_id", :integer
0
     t.column "site_id", :integer
0
     t.column "approved", :boolean, :default => false
0
     t.column "comment_age", :integer, :default => 0
0
@@ -92,11 +92,11 @@ ActiveRecord::Schema.define(:version => 67) do
0
 
0
   create_table "events", :force => true do |t|
0
     t.column "mode", :string
0
- t.column "user_id", :integer
0
     t.column "article_id", :integer
0
     t.column "title", :text
0
     t.column "body", :text
0
     t.column "created_at", :datetime
0
+ t.column "user_id", :integer
0
     t.column "author", :string, :limit => 100
0
     t.column "comment_id", :integer
0
     t.column "site_id", :integer

Comments

    No one has commented yet.