app/models/plutus/amount.rb in plutus-0.12.2 vs app/models/plutus/amount.rb in plutus-0.13
- old
+ new
@@ -16,18 +16,7 @@
def account_name=(name)
self.account = Account.find_by_name!(name)
end
protected
-
- # Support constructing amounts with account = "name" syntax
- def account_with_name_lookup=(v)
- if v.kind_of?(String)
- ActiveSupport::Deprecation.warn('Plutus was given an :account String (use account_name instead)', caller)
- self.account_name = v
- else
- self.account_without_name_lookup = v
- end
- end
- alias_method_chain :account=, :name_lookup
end
end