Skip to content

Commit

Permalink
Merge pull request #11 from ScotterC/rails4
Browse files Browse the repository at this point in the history
Rails4
  • Loading branch information
ScotterC committed Jan 16, 2014
2 parents db5139a + ccce0fd commit 25162d5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ PATH
remote: .
specs:
fileclip (0.3.1)
paperclip
paperclip (>= 3.5.1)
railties (>= 3.0)
rest-client
Expand Down
3 changes: 1 addition & 2 deletions fileclip.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Gem::Specification.new do |s|

s.rubygems_version = "2.0.3"

s.add_dependency 'paperclip', [">= 3.5.1"]
s.add_dependency 'rest-client'

s.add_development_dependency "rspec"
Expand All @@ -28,6 +27,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'coveralls'
s.add_runtime_dependency(%q<railties>, [">= 3.0"])

s.add_runtime_dependency "paperclip"
s.add_runtime_dependency "paperclip", [">= 3.5.1"]
end

1 change: 0 additions & 1 deletion lib/fileclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def self.included(base)

module ClassMethods
def fileclip(name)
attr_accessible :filepicker_url
after_commit :update_from_filepicker!

set_fileclipped(name)
Expand Down
1 change: 1 addition & 0 deletions lib/fileclip/action_view/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def activation(js, id, callback)

# Options
# Activate (defaults to true) to set own javascript
# TODO: add to options to add css classes
def fileclip_link_builder(link, form_object, options, id)
# Get attachment name
attachment_name = form_object.object.attachment_name
Expand Down

0 comments on commit 25162d5

Please sign in to comment.