class TcWeb::Root
  include Ripple::Document
  bucket_name = 'roots' # or tcweb_roots, whatever
  ...
end

On 07/01/2011 08:25 AM, Thomas Fee wrote:
I'm currently using Ripple with the application name prepended to the
typename in an effort to artificially create a namespace for app, to not
collide with other apps, e.g.

class TcwebRoot
   include Ripple::Document
   property :typed_root_symbol, String, :presence => true
   key_on   :typed_root_symbol
   # et cetera
end

Where "Tcweb" is the appname functioning as a namespace prefix. The
object class should ideally be called just "Root". I would prefer to not
have "Tcweb" mangled into the classname.

Does Ripple allow this sort of thing?...

Ripple::namespace("Tcweb")
class Root
   include Ripple::Document
   property :typed_root_symbol, String, :presence => true
   # et cetera
end

Note:
With my name mangling, plus Ripple's name mapping conventions, a
TcwebRoot object is currently queried like this...
http://172.22.59.51:8098/riak/tcweb_roots/%24200-KOR%7C0



_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to