Skip to content

Commit

Permalink
Fix class_reference bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Said committed Oct 13, 2014
1 parent 4b26c8c commit 5311a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion citier.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = %q{citier}
s.version = "0.1.15"
s.version = "0.1.16"

s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Peter Hamilton, Originally from Laurent Buffat, Pierre-Emmanuel Jouve"]
Expand Down
2 changes: 1 addition & 1 deletion lib/citier/core_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.create_class_writable(class_reference) #creation of a new class which
self.view_class = class_reference

def self.serialized_attributes
self.writable_serialized_attributes ||= class_reference.serialized_attributes.reject { |key, value| class_reference.superclass.column_names.include?(key) }
self.writable_serialized_attributes ||= self.view_class.serialized_attributes.reject { |key, value| self.view_class.superclass.column_names.include?(key) }
end
end
end
Expand Down

0 comments on commit 5311a6a

Please sign in to comment.