Sha256: 738f185acf5535248b6667610068abd6ec8679a14220bbd050745d0d12289468
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
module Padrino module Generators module Admin module Actions ## # Tell us which orm we are using # def orm fetch_component_choice(:orm).to_sym rescue :activerecord end alias :adapter :orm ## # Tell us which rendering engine you are using # def ext fetch_component_choice(:admin_renderer).to_sym rescue :haml end ## # Tell us for now wich orm we support # def supported_orm [:datamapper, :activerecord, :mongomapper, :mongoid, :couchrest, :sequel] end ## # Tell us for now wich rendering engine we support # def supported_ext [:haml, :erb, :slim] end ## # Add access_control permission in our app.rb # def add_project_module(controller) permission = " role.project_module :#{controller}, \"/#{controller}\"\n" inject_into_file destination_root("/admin/app.rb"), permission, :after => "access_control.roles_for :admin do |role|\n" end end # Actions end # Admin end # Generators end # Padrino
Version data entries
6 entries across 6 versions & 1 rubygems