tawork 0.0.45 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2574d56e52424b748121e2a4b3837fea57e943bc
4
- data.tar.gz: 46b22300c9e58c465c80b184be627238503b254e
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MzI1NjY1ZmY2NDZiOTBjZDAxMWM4MmJiYTE5ODJhMThiMjQ0MWUxMA==
5
+ data.tar.gz: !binary |-
6
+ YjhhZTFiZWU3YzljMzhmY2M5NzZlNmMxYjY3YTQ3YzA1ZjZiYjhiMA==
5
7
  SHA512:
6
- metadata.gz: a972d038da4b4128c4e4a1fed94c99c23396b99bca3961c9df2f364686035ef16f9884d711143430c740a763691f75690b089481796c9355fed475fd6adef486
7
- data.tar.gz: 5f87a98f1e5c7236443510c48f908b196648a6c48b2d0c050f626ad3e6813add0fd0d11c87f267ac72f5790c1e46ff8fad00d0fb1800b1ef2763bd6c8b7b7a9b
8
+ metadata.gz: !binary |-
9
+ ZWI4M2ZiYzYyNTVmNjQxODY2MWU0ZmQxMzU2ZjJmNzYzODU4MDMxYmIwYmYz
10
+ ZWM3OWIyZmY3YTE3ZDZhNzNlZTM5NzBkZTNiYWQzYzA0NTg4M2MxZGYxNWI5
11
+ ODA2ZGUwYjZmZGE1OWY0YjE4ZDIzYmE0N2Y5ZmJlNWFiMDZiZmY=
12
+ data.tar.gz: !binary |-
13
+ ZTliMzA0YmQwYWIyN2U2YjU1M2IyNTcxYjkzMTU0ZTA0OTUxZjdiOGY3OGNl
14
+ OWU4ZTgyMGZkMjM5NTI0M2EzNGZjMDk3ZGM4MGUzOGVhZTMwYjllNGQ2NGIx
15
+ Y2E5MjU5NDIzMDRiMDlkZDcwMGIzNDNmZTVmODZmOWUwNjBjZDc=
@@ -14,4 +14,8 @@ class ApplicationController < ActionController::Base
14
14
  Rack::MiniProfiler.authorize_request
15
15
  end
16
16
  end
17
+
18
+ def after_sign_in_path_for(resource_or_scope)
19
+ session.fetch 'user_return_to', '/'
20
+ end
17
21
  end
@@ -1,4 +1,6 @@
1
1
  class AttachmentsController < ApplicationController
2
+ before_filter :authenticate_user!
3
+
2
4
  def show
3
5
  attachment = Attachment.find params[:id]
4
6
 
@@ -1,3 +1,3 @@
1
1
  module Tawork
2
- VERSION = '0.0.45'
2
+ VERSION = '0.0.46'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tawork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adnan Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-08 00:00:00.000000000 Z
11
+ date: 2014-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,8 +31,8 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".DS_Store"
35
- - ".gitignore"
34
+ - .DS_Store
35
+ - .gitignore
36
36
  - Gemfile
37
37
  - Gemfile.lock
38
38
  - MIT-LICENSE
@@ -318,12 +318,12 @@ require_paths:
318
318
  - lib
319
319
  required_ruby_version: !ruby/object:Gem::Requirement
320
320
  requirements:
321
- - - ">="
321
+ - - ! '>='
322
322
  - !ruby/object:Gem::Version
323
323
  version: '0'
324
324
  required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  requirements:
326
- - - ">="
326
+ - - ! '>='
327
327
  - !ruby/object:Gem::Version
328
328
  version: '0'
329
329
  requirements: []