lib/zertico/accessor.rb in zertico-0.5.4 vs lib/zertico/accessor.rb in zertico-0.5.5
- old
+ new
@@ -25,10 +25,10 @@
end
protected
def self.interface_name
- self.interface_class.name.singularize.underscore
+ self.interface_class.name.split('::').last.singularize.underscore
end
def self.interface_class
begin
self.name.chomp('Accessor').constantize
\ No newline at end of file