lib/ar_enums/enum.rb in ar-enums-0.3.9 vs lib/ar_enums/enum.rb in ar-enums-1.0.0

- old
+ new

@@ -1,10 +1,10 @@ module ActiveRecord class Enum extend ActiveRecord::Enumerations::OptionsHelper attr_reader :id, :name, :extra_columns - class_inheritable_accessor :label_method + class_attribute :label_method def initialize attrs = {} @id = attrs.delete(:id).to_i @name = attrs.delete(:name).to_s @extra_columns = attrs.reject { |k, _| [:enum_class, :on_style_not_matched].include?(k) }