Sha256: 51aa8a92c2b0312de6ea1f14b475d0c41d3f42ff060d1c91463de856b26bcc99
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
module PushType module Admin class Engine < ::Rails::Engine isolate_namespace PushType engine_name 'push_type_admin' config.generators do |g| g.assets false g.helper false g.test_framework :minitest, spec: true, fixture: false end config.assets.precompile += %w( push_type/admin.css push_type/admin.js push_type/admin_assets.css push_type/admin_assets.js ) initializer 'push_type_admin.menus' do PushType.menu :main do element :ul html_options class: 'inline-list' item :content do link { push_type.nodes_path } active { request.fullpath.match %r{^#{ push_type.nodes_path }} } end item :media do link { push_type.assets_path } active { request.fullpath.match %r{^#{ push_type.assets_path }} } end item :users do link { push_type.users_path } active { request.fullpath.match %r{^#{ push_type.users_path }} } end end PushType.menu :utility do element :ul html_options class: 'inline-list right' item :info do text { ficon(:info) } link { push_type.info_path } link_options data: { :'reveal-id' => 'reveal-ajax', :'reveal-ajax' => true } end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_type_admin-0.3.3 | lib/push_type/admin/engine.rb |
push_type_admin-0.3.1 | lib/push_type/admin/engine.rb |