Sha256: 6c65f62f4859bad887b26a9f7f4f6444209369892249397ca497cd3e022b6e21
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
# Make sure that ActiveScaffold has already been included ActiveScaffold rescue throw "should have included ActiveScaffold plug in first. Please make sure that this overwrite plugging comes alphabetically after the ActiveScaffold plug in" # Load our overrides require "#{File.dirname(__FILE__)}/active_scaffold_config_list/config/core.rb" module ActiveScaffoldConfigList def self.root File.dirname(__FILE__) + "/.." end end module ActiveScaffold module Actions ActiveScaffold.autoload_subdir('actions', self, File.dirname(__FILE__)) end module Config ActiveScaffold.autoload_subdir('config', self, File.dirname(__FILE__)) end module Helpers ActiveScaffold.autoload_subdir('helpers', self, File.dirname(__FILE__)) end end ActionView::Base.send(:include, ActiveScaffold::Helpers::ConfigListHelpers) ## ## Run the install assets script, too, just to make sure ## But at least rescue the action in production ## Rails::Application.initializer("active_scaffold_config_list.install_assets", :after => "active_scaffold.install_assets") do begin ActiveScaffoldAssets.copy_to_public(ActiveScaffoldConfigList.root) rescue raise $! unless Rails.env == 'production' end end unless defined?(ACTIVE_SCAFFOLD_CONFIG_LIST_INSTALLED) && ACTIVE_SCAFFOLD_CONFIG_LIST_INSTALLED == :plugin
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_scaffold_config_list_vho-3.0.1 | lib/active_scaffold_config_list.rb |
active_scaffold_config_list_vho-3.0.0 | lib/active_scaffold_config_list.rb |