Class: Permisi::PermissionUtil::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/permisi/permission_util.rb

Class Method Summary collapse

Class Method Details

.dump(hash) ⇒ Object



91
92
93
# File 'lib/permisi/permission_util.rb', line 91

def self.dump(hash)
  hash
end

.load(hash) ⇒ Object



95
96
97
# File 'lib/permisi/permission_util.rb', line 95

def self.load(hash)
  (hash.is_a?(Hash) ? hash : {}).with_indifferent_access
end