diff --git a/Gemfile.lock b/Gemfile.lock index bd40e7e..09ba65f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - matilda_core (1.1.1) + matilda_core (1.1.2) bcrypt evnt jwt diff --git a/lib/matilda_core/session.rb b/lib/matilda_core/session.rb index 732c157..c1e7038 100644 --- a/lib/matilda_core/session.rb +++ b/lib/matilda_core/session.rb @@ -104,6 +104,16 @@ def membership @membership ||= MatildaCore::Membership.find_by(group_uuid: group_uuid, user_uuid: user_uuid) end + # Custom + + def set(key, value) + @data[key] = value + end + + def get(key) + @data[key] + end + ###################################################################### protected diff --git a/lib/matilda_core/version.rb b/lib/matilda_core/version.rb index 794dc60..b0ad3b0 100644 --- a/lib/matilda_core/version.rb +++ b/lib/matilda_core/version.rb @@ -2,6 +2,6 @@ module MatildaCore - VERSION = '1.1.1' + VERSION = '1.1.2' end