Sha256: cd8d786aae789f7f1f21575ae0432fa630cf4372e4f625ef8fe30a97a969cf51

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 Bytes

Contents

class <%= @class_name %>Model < RailsViewComponentModel
  def erb_script
    "<%= @file_name %>_view_component.html.erb"
  end

  def javascripts
    ["/javascripts/<%= @haxe_js_name %>"]
  end
  def stylesheets
    []
  end

  def responsibility
    1
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_view_component-1.0.4 lib/generators/rails_view_component/erb/model.rb.erb
rails_view_component-1.0.3 lib/generators/rails_view_component/erb/model.rb.erb
rails_view_component-1.0.2 lib/generators/rails_view_component/erb/model.rb.erb
rails_view_component-1.0.1 lib/generators/rails_view_component/erb/model.rb.erb
rails_view_component-1.0.0 lib/generators/rails_view_component/erb/model.rb.erb