Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusted_io initializer broken #1

Open
cthorner opened this issue Oct 9, 2015 · 1 comment
Open

Trusted_io initializer broken #1

cthorner opened this issue Oct 9, 2015 · 1 comment

Comments

@cthorner
Copy link

cthorner commented Oct 9, 2015

after including the gem, the app will not start and throws this error:

c/lib/paperclip-trusted-io/paperclip/trusted_io.rb:3: syntax error, unexpected ','
def initialize(content, content_type: , filename: )
^

I'm thinking it should be

def initialize(content, content_type , filename )

@amilligan
Copy link
Contributor

What version of ruby are you using?

Your interpreter is failing on the use of required named parameters, which I think was added to ruby in version 2.1 or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants