Skip to content

Commit

Permalink
Supports Rails4
Browse files Browse the repository at this point in the history
  • Loading branch information
kitak committed Aug 25, 2013
1 parent ff06637 commit 6eee32f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fancybox2-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Gem::Specification.new do |s|
s.email = ["[email protected]"]
s.homepage = "https://github.com/kyparn/fancybox2-rails"

s.summary = "Use FancyBox 2 with Rails 3.1"
s.description = "This gem provides jQuery FancyBox 2 for your Rails 3.1 application. This gem is based on the gem for Fancybox 1.x by Chris Mytton"
s.summary = "Use FancyBox 2 with Rails 3.1/4.0"
s.description = "This gem provides jQuery FancyBox 2 for your Rails 3.1/4.0 application. This gem is based on the gem for Fancybox 1.x by Chris Mytton"
s.files = Dir["{lib,vendor}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.md"]
s.version = Fancybox2::Rails::VERSION

s.add_dependency "railties", ">= 3.1.0"
s.add_development_dependency "rails", "~> 3.1"
s.add_development_dependency "rails", ">= 3.1"
s.add_development_dependency "jquery-rails"
s.add_development_dependency 'coffee-rails'
s.add_development_dependency "sqlite3"
Expand Down
2 changes: 1 addition & 1 deletion lib/fancybox2-rails.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if defined? Rails && Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 1
if defined? Rails && Rails.application.config.try(:assets).try(:compile)
require 'fancybox2/rails'
end

0 comments on commit 6eee32f

Please sign in to comment.