Skip to content

Instantly share code, notes, and snippets.

@stevenwanderski
stevenwanderski / active_admin.css.scss
Created April 11, 2013 06:50
Prevent Active Admin from clobbering CKEditor CSS styles
// SASS variable overrides must be declared before loading up Active Admin's styles.
//
// To view the variables that Active Admin provides, take a look at
// `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the
// Active Admin source.
//
// For example, to change the sidebar width:
// $sidebar-width: 242px;
// Active Admin's got SASS!
@fastjames
fastjames / gist:2725983
Created May 18, 2012 15:52 — forked from dignoe/gist:2485272
Patch to get content_for working with action caching and fragment caching in Rails 3.1
module ActionController
class Metal
attr_internal :cached_content_for
end
module Caching
module Actions
def _save_fragment(name, options)
return unless caching_allowed?