class NetzplanMicroFrontend::Generators::InstallUserRightsGenerator
Public Instance Methods
public_micro_frontend_sources()
click to toggle source
# File lib/generators/netzplan_micro_frontend/install_user_rights/install_user_rights_generator.rb, line 8 def public_micro_frontend_sources inject_into_file 'app/models/ability.rb', after: "def initialize(user)\n" do <<-'RUBY' can :read, :micro_frontend_sources can :manage, :micro_frontend RUBY end end
routes()
click to toggle source
# File lib/generators/netzplan_micro_frontend/install_user_rights/install_user_rights_generator.rb, line 4 def routes route "use_netzplan_microfrontend" end