Sha256: 37becbbe94ead7d904ae6c7e6fdfb7568aa575da3e04cf1e9f446c0bce2b4ca6

Contents?: true

Size: 460 Bytes

Versions: 8

Compression:

Stored size: 460 Bytes

Contents

IAmICan::Configs.set_for(subject: '<%= name_c %>',
                         role: '<%= @ii_opts[:role_class] %>',
                         permission: '<%= @ii_opts[:permission_class] %>'<% unless @ii_opts[:without_group] %>,
                         role_group: '<%= @ii_opts[:role_group_class] %>'<% end %>) do |config|
<% @ii_opts.except(:role_class, :permission_class, :role_group_class).each do |k, v| %>
    <%= "config.#{k} = " %><%= v %>
<% end %>
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
i_am_i_can-4.3.3 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-4.3.2 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-4.3.1 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-4.3.0 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-4.2.0 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-4.1.0 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-4.0.0 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb
i_am_i_can-3.0.1 lib/generators/i_am_i_can/templates/initializers/i_am_i_can.erb