Skip to content
Browse files

Allow multiple include

  • Loading branch information...
1 parent b7c5839 commit 22fb7f422b0cd479939b6d0657131610c7cf36dd Peter Goldstein committed Feb 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/flag_shih_tzu.rb
View
4 lib/flag_shih_tzu.rb
@@ -10,8 +10,8 @@ module FlagShihTzu
def self.included(base)
base.extend(ClassMethods)
- base.class_attribute :flag_options
- base.class_attribute :flag_mapping
+ base.class_attribute :flag_options unless defined?(base.flag_options)
+ base.class_attribute :flag_mapping unless defined?(base.flag_mapping)
end
class IncorrectFlagColumnException < Exception; end

0 comments on commit 22fb7f4

Please sign in to comment.
Something went wrong with that request. Please try again.