Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Style cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon committed Mar 6, 2013
1 parent 7f5fd99 commit 82514a2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/periscope-activerecord.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require 'periscope/adapters/active_record'
require "periscope/adapters/active_record"
2 changes: 1 addition & 1 deletion lib/periscope-data_mapper.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require 'periscope/adapters/data_mapper'
require "periscope/adapters/data_mapper"
2 changes: 1 addition & 1 deletion lib/periscope-mongo_mapper.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require 'periscope/adapters/mongo_mapper'
require "periscope/adapters/mongo_mapper"
2 changes: 1 addition & 1 deletion lib/periscope-mongoid.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require 'periscope/adapters/mongoid'
require "periscope/adapters/mongoid"
2 changes: 1 addition & 1 deletion lib/periscope.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Periscope
def scope_accessible(*scopes)
options = scopes.last.is_a?(Hash) ? scopes.pop : {}
scopes.each{|s| periscope_options[s.to_s] = options }
scopes.each { |s| periscope_options[s.to_s] = options }
end

def periscope(params = {})
Expand Down
4 changes: 2 additions & 2 deletions lib/periscope/adapters/data_mapper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'periscope'
require 'dm-core'
require "periscope"
require "dm-core"

module Periscope
module Adapters
Expand Down
4 changes: 2 additions & 2 deletions lib/periscope/adapters/mongo_mapper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'periscope'
require 'mongo_mapper'
require "periscope"
require "mongo_mapper"

module Periscope
module Adapters
Expand Down
6 changes: 3 additions & 3 deletions lib/periscope/adapters/mongoid.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'periscope'
require 'mongoid'
require "periscope"
require "mongoid"

module Periscope
module Adapters
Expand All @@ -15,4 +15,4 @@ def periscope_default_scope
end
end

Mongoid::Document::ClassMethods.send(:include, Periscope::Adapters::Mongoid)
Mongoid::Document::ClassMethods.send(:include, Periscope::Adapters::Mongoid)

0 comments on commit 82514a2

Please sign in to comment.