Sha256: e4802361b77a1a96a4fe7dda3b80d57ba97fb590443dce478f5b9b7708c380ff

Contents?: true

Size: 679 Bytes

Versions: 38

Compression:

Stored size: 679 Bytes

Contents

class <%= name %> < ApplicationRecord
  attr_reader :per_page
  @per_page = 7
  attr_writer :inline_forms_attribute_list
  has_paper_trail
<%= @carrierwave_mounters if @carrierwave_mounters.length > 1 -%>
<%= @belongs_to if @belongs_to.length > 1 -%>
<%= @has_many if @has_many.length > 1 -%>
<%= @has_one if @has_one.length > 1 -%>
<%= @habtm if @habtm.length > 1 -%>
<%= @has_attached_files if @has_attached_files.length > 1 -%>
<%= @presentation  if @presentation.length > 1 -%>
<%= @inline_forms_attribute_list -%>
<%= @order  if @order.length > 1 -%>

  def self.not_accessible_through_html?
    <%= @flag_not_accessible_through_html %>
  end

<%= @order_by_clause -%>

end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
inline_forms-6.2.14 lib/generators/templates/model.erb
inline_forms-6.2.12 lib/generators/templates/model.erb
inline_forms-6.2.11 lib/generators/templates/model.erb
inline_forms-6.2.10 lib/generators/templates/model.erb
inline_forms-6.2.9 lib/generators/templates/model.erb
inline_forms-6.2.7 lib/generators/templates/model.erb
inline_forms-6.2.6 lib/generators/templates/model.erb
inline_forms-6.2.5 lib/generators/templates/model.erb
inline_forms-6.2.4 lib/generators/templates/model.erb
inline_forms-6.2.3 lib/generators/templates/model.erb
inline_forms-6.2.2 lib/generators/templates/model.erb
inline_forms-6.2.1 lib/generators/templates/model.erb
inline_forms-6.1.1 lib/generators/templates/model.erb
inline_forms-6.1.0 lib/generators/templates/model.erb
inline_forms-6.0.8 lib/generators/templates/model.erb
inline_forms-6.0.7 lib/generators/templates/model.erb
inline_forms-6.0.6 lib/generators/templates/model.erb
inline_forms-6.0.5 lib/generators/templates/model.erb
inline_forms-6.0.4 lib/generators/templates/model.erb
inline_forms-6.0.3 lib/generators/templates/model.erb