class AdminlteThemeGenerator
Public Instance Methods
generate_layout()
click to toggle source
I can't make it work. hook_for :orm
# File lib/generators/adminlte_theme/adminlte_theme_generator.rb, line 8 def generate_layout template "layouts/adminlte_theme.html.erb", "app/views/layouts/#{name}.html.erb" template "layouts/_control_sidebar.html.erb", "app/views/layouts/_control_sidebar.html.erb" template "layouts/_header.html.erb", "app/views/layouts/_header.html.erb" template "layouts/_footer.html.erb", "app/views/layouts/_footer.html.erb" template "layouts/_sidebar.html.erb", "app/views/layouts/_sidebar.html.erb" end
Private Instance Methods
object()
click to toggle source
# File lib/generators/adminlte_theme/adminlte_theme_generator.rb, line 23 def object @object ||= objects.singularize end
objects()
click to toggle source
# File lib/generators/adminlte_theme/adminlte_theme_generator.rb, line 19 def objects @objects ||= name.underscore.pluralize end
with_datatable?()
click to toggle source
# File lib/generators/adminlte_theme/adminlte_theme_generator.rb, line 26 def with_datatable? options.with_datatable.present? end