Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New hash syntax, missed one!

  • Loading branch information...
commit ed2e043af61f4496873ff1ac28bea2e22cdc8181 1 parent b57273f
@jeriko jeriko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/methods/serialize.rb
View
2  lib/methods/serialize.rb
@@ -4,7 +4,7 @@ def initialize(base, column_name, options)
base.serialize column_name.to_sym, Array
ActiveSupport::Deprecation.silence do
- base.before_validation(:make_default_roles, :on => :create)
+ base.before_validation(:make_default_roles, on: :create)
end
base.send :define_method, :has_role? do |role|
Please sign in to comment.
Something went wrong with that request. Please try again.