{"action":"created","issue":{"url":"https://api.github.com/repos/kyparn/fancybox2-rails/issues/27","labels_url":"https://api.github.com/repos/kyparn/fancybox2-rails/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/kyparn/fancybox2-rails/issues/27/comments","events_url":"https://api.github.com/repos/kyparn/fancybox2-rails/issues/27/events","html_url":"https://github.com/kyparn/fancybox2-rails/issues/27","id":55867985,"number":27,"title":"@import \"fancybox\" is not loaded properly in Rails 4.2","user":{"login":"harley","id":44055,"avatar_url":"https://avatars.githubusercontent.com/u/44055?v=3","gravatar_id":"","url":"https://api.github.com/users/harley","html_url":"https://github.com/harley","followers_url":"https://api.github.com/users/harley/followers","following_url":"https://api.github.com/users/harley/following{/other_user}","gists_url":"https://api.github.com/users/harley/gists{/gist_id}","starred_url":"https://api.github.com/users/harley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harley/subscriptions","organizations_url":"https://api.github.com/users/harley/orgs","repos_url":"https://api.github.com/users/harley/repos","events_url":"https://api.github.com/users/harley/events{/privacy}","received_events_url":"https://api.github.com/users/harley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-29T07:58:09Z","updated_at":"2015-06-24T13:32:01Z","closed_at":null,"body":"In a rails 4.2 app, putting `@import \"fancybox\"` in `application.scss` (or the old way `application.css.scss`) will result in copying the content from [app/assets/stylesheets/fancybox.css](https://github.com/kyparn/fancybox2-rails/blob/92ac30ef15a2b5270421b31c4424108d27d472d1/app/assets/stylesheets/fancybox.css) over when compiling:\r\n\r\n```css\r\n/*\r\n *= require jquery.fancybox\r\n *= require jquery.fancybox-buttons\r\n *= require jquery.fancybox-thumbs\r\n */\r\n```\r\n\r\ninstead executing `require`. This breaking change is probably due to a [recent change](https://github.com/rails/sass-rails/blob/master/CHANGELOG.md) in `sass-rails` since 5.0.0:\r\n\r\n> Limit `=require to .css only files and `@import` to `.scss` files. Avoid mixing the two\r\n\r\nThe workaround for my app right now is to explicitly put these in `application.scss`:\r\n\r\n```scss\r\n@import \"jquery.fancybox\";\r\n@import \"jquery.fancybox-buttons\";\r\n@import \"jquery.fancybox-thumbs\";\r\n\r\n```\r\n\r\nNow this gem is not dependent on `sass-rails`. Any thoughts on making sass-rails 5 behave in a rails 4.2 app here?"},"comment":{"url":"https://api.github.com/repos/kyparn/fancybox2-rails/issues/comments/114868970","html_url":"https://github.com/kyparn/fancybox2-rails/issues/27#issuecomment-114868970","issue_url":"https://api.github.com/repos/kyparn/fancybox2-rails/issues/27","id":114868970,"user":{"login":"kirantpatil","id":1178055,"avatar_url":"https://avatars.githubusercontent.com/u/1178055?v=3","gravatar_id":"","url":"https://api.github.com/users/kirantpatil","html_url":"https://github.com/kirantpatil","followers_url":"https://api.github.com/users/kirantpatil/followers","following_url":"https://api.github.com/users/kirantpatil/following{/other_user}","gists_url":"https://api.github.com/users/kirantpatil/gists{/gist_id}","starred_url":"https://api.github.com/users/kirantpatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirantpatil/subscriptions","organizations_url":"https://api.github.com/users/kirantpatil/orgs","repos_url":"https://api.github.com/users/kirantpatil/repos","events_url":"https://api.github.com/users/kirantpatil/events{/privacy}","received_events_url":"https://api.github.com/users/kirantpatil/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T13:32:01Z","updated_at":"2015-06-24T13:32:01Z","body":"any updates on this ?\r\n\r\nI am planning to use it on Rails 4.2.1."}}