Permalink
Browse files

minor fix

  • Loading branch information...
1 parent 6a6f50d commit ffe321eda0935750e0d3c1c9bad705c5f01cf8e1 eugene gilburg committed May 6, 2010
Showing with 8 additions and 11 deletions.
  1. +8 −11 lib/route_mapper.rb
View
@@ -13,7 +13,14 @@ def map_sdata_routes!
map_sdata_update_instance
end
+ def self.urlize(string)
+ string.gsub("'", "(%27|')").gsub("\s", "(%20|\s)")
+ end
+
protected
+
+ CONDITION = urlize("{:condition,([$](linked))}")
+ PREDICATE = urlize("{:predicate,[A-z]+\s[A-z]+\s'?[^']*'?}")
# http://localhost:3000/sdata/billingboss/crmErp/-/tradingAccounts
def map_sdata_collection
@@ -102,16 +109,6 @@ def prefix
def prefix?
!! prefix
end
-
- def urlize(str)
- RouteMapper.urlize(str)
- end
-
- def self.urlize(string)
- string.gsub("'", "(%27|')").gsub("\s", "(%20|\s)")
- end
-
- CONDITION = urlize("{:condition,([$](linked))}")
- PREDICATE = urlize("{:predicate,[A-z]+\s[A-z]+\s'?[^']*'?}")
+
end
end

0 comments on commit ffe321e

Please sign in to comment.