Method: NextErpBridge::Core::Entry::ClassMethods#before_action
- Defined in:
- lib/next_erp_bridge/core/entry.rb
#before_action(c = {login: true}) ⇒ Object
All methods call this so that we can do a login before we actually start CRUD in the ERP As of now for every call it is calling login which is bad TODO: Need to change this to, login when session expires
20 21 22 |
# File 'lib/next_erp_bridge/core/entry.rb', line 20 def before_action(c={login: true}) Client.instance.login if c[:login] end |