module Vidibus::Permalink::Mongoid::ClassMethods
Public Instance Methods
permalink(*args)
click to toggle source
Sets permalink attributes. Usage:
permalink :some, :fields, :scope => {:realm => "rugby"}
# File lib/vidibus/permalink/mongoid.rb, line 29 def permalink(*args) options = args.extract_options! class_eval <<-EOS def self.permalink_attributes #{args.inspect} end def self.permalink_options #{options.inspect} end EOS end