Skip to content

Commit

Permalink
spaced options according to existing code style
Browse files Browse the repository at this point in the history
  • Loading branch information
hamin committed Mar 14, 2012
1 parent 62d23e9 commit f9cbe76
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/mongo_mapper/plugins/modifiers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,40 +91,40 @@ def unset(*keys)
self.class.unset(id, *keys)
end

def increment(hash,options=nil)
def increment(hash, options=nil)
self.class.increment(id, hash, options)
end

def decrement(hash,options=nil)
def decrement(hash, options=nil)
self.class.decrement(id, hash, options)
end

def set(hash,options=nil)
def set(hash, options=nil)
self.class.set(id, hash, options)
end

def push(hash,options=nil)
def push(hash, options=nil)
self.class.push(id, hash, options)
end

def push_all(hash,options=nil)
def push_all(hash, options=nil)
self.class.push_all(id, hash, options)
end

def pull(hash,options=nil)
def pull(hash, options=nil)
self.class.pull(id, hash, options)
end

def pull_all(hash,options=nil)
def pull_all(hash, options=nil)
self.class.pull_all(id, hash, options)
end

def add_to_set(hash,options=nil)
def add_to_set(hash, options=nil)
self.class.push_uniq(id, hash, options)
end
alias push_uniq add_to_set

def pop(hash,options=nil)
def pop(hash, options=nil)
self.class.pop(id, hash, options)
end
end
Expand Down

0 comments on commit f9cbe76

Please sign in to comment.