{"filter":false,"title":"sessions_controller.rb","tooltip":"/app/controllers/sessions_controller.rb","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":15,"column":13},"end":{"row":15,"column":14},"action":"insert","lines":["f"],"id":175}],[{"start":{"row":15,"column":14},"end":{"row":15,"column":15},"action":"insert","lines":["u"],"id":176}],[{"start":{"row":15,"column":15},"end":{"row":15,"column":16},"action":"insert","lines":["n"],"id":177}],[{"start":{"row":15,"column":16},"end":{"row":15,"column":17},"action":"insert","lines":["c"],"id":178}],[{"start":{"row":15,"column":17},"end":{"row":15,"column":18},"action":"insert","lines":["i"],"id":179}],[{"start":{"row":15,"column":18},"end":{"row":15,"column":19},"action":"insert","lines":["o"],"id":180}],[{"start":{"row":15,"column":19},"end":{"row":15,"column":20},"action":"insert","lines":["n"],"id":181}],[{"start":{"row":15,"column":20},"end":{"row":15,"column":21},"action":"insert","lines":["a"],"id":182}],[{"start":{"row":15,"column":13},"end":{"row":15,"column":21},"action":"remove","lines":["funciona"],"id":183},{"start":{"row":15,"column":13},"end":{"row":15,"column":24},"action":"insert","lines":["funcionario"]}],[{"start":{"row":16,"column":21},"end":{"row":16,"column":22},"action":"remove","lines":["r"],"id":184}],[{"start":{"row":16,"column":20},"end":{"row":16,"column":21},"action":"remove","lines":["e"],"id":185}],[{"start":{"row":16,"column":19},"end":{"row":16,"column":20},"action":"remove","lines":["s"],"id":186}],[{"start":{"row":16,"column":18},"end":{"row":16,"column":19},"action":"remove","lines":["u"],"id":187}],[{"start":{"row":16,"column":18},"end":{"row":16,"column":19},"action":"insert","lines":["f"],"id":188}],[{"start":{"row":16,"column":19},"end":{"row":16,"column":20},"action":"insert","lines":["u"],"id":189}],[{"start":{"row":16,"column":20},"end":{"row":16,"column":21},"action":"insert","lines":["n"],"id":190}],[{"start":{"row":16,"column":21},"end":{"row":16,"column":22},"action":"insert","lines":["c"],"id":191}],[{"start":{"row":16,"column":22},"end":{"row":16,"column":23},"action":"insert","lines":["i"],"id":192}],[{"start":{"row":16,"column":23},"end":{"row":16,"column":24},"action":"insert","lines":["o"],"id":193}],[{"start":{"row":16,"column":18},"end":{"row":16,"column":24},"action":"remove","lines":["funcio"],"id":194},{"start":{"row":16,"column":18},"end":{"row":16,"column":29},"action":"insert","lines":["funcionario"]}],[{"start":{"row":18,"column":4},"end":{"row":18,"column":64},"action":"remove","lines":["#  flash.now[:danger] = 'Invalid email/password combination'"],"id":195},{"start":{"row":18,"column":4},"end":{"row":18,"column":5},"action":"insert","lines":["r"]}],[{"start":{"row":18,"column":5},"end":{"row":18,"column":6},"action":"insert","lines":["e"],"id":196}],[{"start":{"row":18,"column":5},"end":{"row":18,"column":6},"action":"remove","lines":["e"],"id":197}],[{"start":{"row":18,"column":4},"end":{"row":18,"column":5},"action":"remove","lines":["r"],"id":198}],[{"start":{"row":18,"column":4},"end":{"row":18,"column":5},"action":"insert","lines":[" "],"id":199}],[{"start":{"row":18,"column":5},"end":{"row":18,"column":6},"action":"insert","lines":["r"],"id":200}],[{"start":{"row":18,"column":6},"end":{"row":18,"column":7},"action":"insert","lines":["e"],"id":201}],[{"start":{"row":18,"column":7},"end":{"row":18,"column":8},"action":"insert","lines":["n"],"id":202}],[{"start":{"row":18,"column":8},"end":{"row":18,"column":9},"action":"insert","lines":["d"],"id":203}],[{"start":{"row":18,"column":9},"end":{"row":18,"column":10},"action":"insert","lines":["e"],"id":204}],[{"start":{"row":18,"column":10},"end":{"row":18,"column":11},"action":"insert","lines":["r"],"id":205}],[{"start":{"row":18,"column":11},"end":{"row":18,"column":12},"action":"insert","lines":[" "],"id":206}],[{"start":{"row":18,"column":12},"end":{"row":18,"column":14},"action":"insert","lines":["''"],"id":207}],[{"start":{"row":18,"column":13},"end":{"row":18,"column":14},"action":"insert","lines":["l"],"id":208}],[{"start":{"row":18,"column":14},"end":{"row":18,"column":15},"action":"insert","lines":["o"],"id":209}],[{"start":{"row":18,"column":15},"end":{"row":18,"column":16},"action":"insert","lines":["g"],"id":210}],[{"start":{"row":18,"column":16},"end":{"row":18,"column":17},"action":"insert","lines":["i"],"id":211}],[{"start":{"row":18,"column":17},"end":{"row":18,"column":18},"action":"insert","lines":["n"],"id":212}],[{"start":{"row":24,"column":2},"end":{"row":25,"column":0},"action":"insert","lines":["",""],"id":214},{"start":{"row":25,"column":0},"end":{"row":25,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":25,"column":2},"end":{"row":29,"column":5},"action":"insert","lines":[" def current_user","    if session[:user_id]","      @current_user ||= User.find_by(id: session[:user_id])","    end","  end"],"id":215}],[{"start":{"row":26,"column":19},"end":{"row":26,"column":20},"action":"remove","lines":["r"],"id":216}],[{"start":{"row":26,"column":18},"end":{"row":26,"column":19},"action":"remove","lines":["e"],"id":217}],[{"start":{"row":26,"column":17},"end":{"row":26,"column":18},"action":"remove","lines":["s"],"id":218}],[{"start":{"row":26,"column":16},"end":{"row":26,"column":17},"action":"remove","lines":["u"],"id":219}],[{"start":{"row":29,"column":2},"end":{"row":29,"column":5},"action":"remove","lines":["end"],"id":231},{"start":{"row":29,"column":2},"end":{"row":29,"column":9},"action":"insert","lines":["__END__"]}],[{"start":{"row":24,"column":0},"end":{"row":30,"column":2},"action":"remove","lines":["  ","   def current_user","    if session[:_id]","      @current_user ||= User.find_by(id: session[:user_id])","    end","  __END__","  "],"id":232}],[{"start":{"row":28,"column":2},"end":{"row":29,"column":5},"action":"remove","lines":[" def destroy","  end"],"id":233},{"start":{"row":28,"column":2},"end":{"row":31,"column":5},"action":"insert","lines":["def log_out","    session.delete(:user_id)","    @current_user = nil","  end"]}],[{"start":{"row":29,"column":23},"end":{"row":29,"column":24},"action":"remove","lines":["r"],"id":235}],[{"start":{"row":29,"column":22},"end":{"row":29,"column":23},"action":"remove","lines":["e"],"id":236}],[{"start":{"row":29,"column":21},"end":{"row":29,"column":22},"action":"remove","lines":["s"],"id":237}],[{"start":{"row":29,"column":20},"end":{"row":29,"column":21},"action":"remove","lines":["u"],"id":238}],[{"start":{"row":29,"column":20},"end":{"row":29,"column":21},"action":"insert","lines":["F"],"id":239}],[{"start":{"row":29,"column":21},"end":{"row":29,"column":22},"action":"insert","lines":["U"],"id":240}],[{"start":{"row":29,"column":22},"end":{"row":29,"column":23},"action":"insert","lines":["N"],"id":241}],[{"start":{"row":29,"column":23},"end":{"row":29,"column":24},"action":"insert","lines":["C"],"id":242}],[{"start":{"row":29,"column":24},"end":{"row":29,"column":25},"action":"insert","lines":["I"],"id":243}],[{"start":{"row":29,"column":25},"end":{"row":29,"column":26},"action":"insert","lines":["O"],"id":244}],[{"start":{"row":29,"column":25},"end":{"row":29,"column":26},"action":"remove","lines":["O"],"id":245}],[{"start":{"row":29,"column":24},"end":{"row":29,"column":25},"action":"remove","lines":["I"],"id":246}],[{"start":{"row":29,"column":23},"end":{"row":29,"column":24},"action":"remove","lines":["C"],"id":247}],[{"start":{"row":29,"column":22},"end":{"row":29,"column":23},"action":"remove","lines":["N"],"id":248}],[{"start":{"row":29,"column":21},"end":{"row":29,"column":22},"action":"remove","lines":["U"],"id":249}],[{"start":{"row":29,"column":20},"end":{"row":29,"column":21},"action":"remove","lines":["F"],"id":250}],[{"start":{"row":29,"column":20},"end":{"row":29,"column":21},"action":"insert","lines":["f"],"id":251}],[{"start":{"row":29,"column":21},"end":{"row":29,"column":22},"action":"insert","lines":["u"],"id":252}],[{"start":{"row":29,"column":22},"end":{"row":29,"column":23},"action":"insert","lines":["n"],"id":253}],[{"start":{"row":29,"column":23},"end":{"row":29,"column":24},"action":"insert","lines":["c"],"id":254}],[{"start":{"row":29,"column":24},"end":{"row":29,"column":25},"action":"insert","lines":["i"],"id":255}],[{"start":{"row":29,"column":25},"end":{"row":29,"column":26},"action":"insert","lines":["o"],"id":256}],[{"start":{"row":29,"column":26},"end":{"row":29,"column":27},"action":"insert","lines":["n"],"id":257}],[{"start":{"row":29,"column":27},"end":{"row":29,"column":28},"action":"insert","lines":["a"],"id":258}],[{"start":{"row":29,"column":28},"end":{"row":29,"column":29},"action":"insert","lines":["r"],"id":259}],[{"start":{"row":29,"column":29},"end":{"row":29,"column":30},"action":"insert","lines":["i"],"id":260}],[{"start":{"row":29,"column":30},"end":{"row":29,"column":31},"action":"insert","lines":["o"],"id":261}],[{"start":{"row":27,"column":1},"end":{"row":32,"column":2},"action":"remove","lines":[" ","  def log_out","    session.delete(:funcionario_id)","    @current_user = nil","  end","  "],"id":262}],[{"start":{"row":22,"column":2},"end":{"row":23,"column":0},"action":"insert","lines":["",""],"id":263},{"start":{"row":23,"column":0},"end":{"row":23,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":23,"column":2},"end":{"row":24,"column":0},"action":"insert","lines":["",""],"id":264},{"start":{"row":24,"column":0},"end":{"row":24,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":24,"column":2},"end":{"row":25,"column":0},"action":"insert","lines":["",""],"id":265},{"start":{"row":25,"column":0},"end":{"row":25,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":25,"column":2},"end":{"row":28,"column":5},"action":"insert","lines":[" def destroy","    log_out","    redirect_to root_url","  end"],"id":266}],[{"start":{"row":17,"column":8},"end":{"row":18,"column":0},"action":"insert","lines":["",""],"id":267},{"start":{"row":18,"column":0},"end":{"row":18,"column":5},"action":"insert","lines":["     "]}],[{"start":{"row":18,"column":5},"end":{"row":18,"column":6},"action":"insert","lines":["p"],"id":268}],[{"start":{"row":18,"column":6},"end":{"row":18,"column":7},"action":"insert","lines":["u"],"id":269}],[{"start":{"row":18,"column":7},"end":{"row":18,"column":8},"action":"insert","lines":["t"],"id":270}],[{"start":{"row":18,"column":8},"end":{"row":18,"column":9},"action":"insert","lines":["s"],"id":271}],[{"start":{"row":18,"column":9},"end":{"row":18,"column":10},"action":"insert","lines":[" "],"id":272}],[{"start":{"row":18,"column":10},"end":{"row":18,"column":12},"action":"insert","lines":["\"\""],"id":273}],[{"start":{"row":18,"column":11},"end":{"row":18,"column":12},"action":"insert","lines":["n"],"id":274}],[{"start":{"row":18,"column":12},"end":{"row":18,"column":13},"action":"insert","lines":["a"],"id":275}],[{"start":{"row":18,"column":12},"end":{"row":18,"column":13},"action":"remove","lines":["a"],"id":276}],[{"start":{"row":18,"column":12},"end":{"row":18,"column":13},"action":"insert","lines":["ã"],"id":277}],[{"start":{"row":18,"column":13},"end":{"row":18,"column":14},"action":"insert","lines":["o"],"id":278}],[{"start":{"row":18,"column":0},"end":{"row":18,"column":15},"action":"remove","lines":["     puts \"não\""],"id":279}],[{"start":{"row":17,"column":8},"end":{"row":18,"column":0},"action":"remove","lines":["",""],"id":280}],[{"start":{"row":17,"column":8},"end":{"row":18,"column":0},"action":"insert","lines":["",""],"id":281},{"start":{"row":18,"column":0},"end":{"row":18,"column":5},"action":"insert","lines":["     "]}],[{"start":{"row":18,"column":5},"end":{"row":18,"column":43},"action":"insert","lines":["flash[:success] = \"Cadastro realizado\""],"id":282}],[{"start":{"row":18,"column":33},"end":{"row":18,"column":34},"action":"insert","lines":["n"],"id":283}],[{"start":{"row":18,"column":34},"end":{"row":18,"column":35},"action":"insert","lines":["ã"],"id":284}],[{"start":{"row":18,"column":35},"end":{"row":18,"column":36},"action":"insert","lines":["o"],"id":285}],[{"start":{"row":18,"column":36},"end":{"row":18,"column":37},"action":"insert","lines":[" "],"id":286}],[{"start":{"row":18,"column":0},"end":{"row":18,"column":47},"action":"remove","lines":["     flash[:success] = \"Cadastro não realizado\""],"id":287}],[{"start":{"row":17,"column":8},"end":{"row":18,"column":0},"action":"remove","lines":["",""],"id":288}]]},"ace":{"folds":[],"scrolltop":60,"scrollleft":0,"selection":{"start":{"row":17,"column":8},"end":{"row":17,"column":8},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":3,"state":"start","mode":"ace/mode/ruby"}},"timestamp":1558707639408,"hash":"bdbcb1b91ebb9a24b9deeb55a0d288022cc82bf0"}