Skip to content

Commit

Permalink
fixing mongoid
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed Dec 6, 2014
1 parent be4a536 commit d16765d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/symbolize.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Symbolize
autoload :ActiveRecord, 'symbolize/active_record'
autoload :Mongoid, 'symbolize/mongoid'
end

require 'symbolize/mongoid' if defined? Mongoid
require 'symbolize/railtie' if defined? Rails
2 changes: 0 additions & 2 deletions spec/symbolize/mongoid_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class Person
include Mongoid::Document
include Mongoid::Symbolize
include Mongoid::Timestamps
include Mongoid::Attributes::Dynamic

symbolize :other, :i18n => false

Expand Down Expand Up @@ -50,7 +49,6 @@ class PersonExtra
class Right
include Mongoid::Document
include Mongoid::Symbolize
include Mongoid::Attributes::Dynamic

validates :name, :presence => true
symbolize :kind, :in => [:temp, :perm], :default => :perm
Expand Down
1 change: 1 addition & 0 deletions symbolize.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Gem::Specification.new do |s|

# s.add_development_dependency 'pg'
# s.add_development_dependency 'sqlite3'
s.add_development_dependency 'pry'
s.add_development_dependency 'mongoid'
s.add_development_dependency 'activerecord'
# s.add_development_dependency 'coveralls'
Expand Down

0 comments on commit d16765d

Please sign in to comment.