require "rails/railtie" module Cells class Railtie < Rails::Railtie initializer "cells.attach_router" do |app| Cell::Rails.class_eval do include app.routes.url_helpers end end initializer "cells.setup_view_paths" do |app| Cell::Base.setup_view_paths! end rake_tasks do load "cells/cells.rake" end end end