Sha256: c3b06e94253d298b917d23e6299aa0833ad51d47a5ff324678513c7940843639

Contents?: true

Size: 185 Bytes

Versions: 5

Compression:

Stored size: 185 Bytes

Contents

module Coalla
  module Cms
    module ScaffoldHelper

      def cms_select_name klass
        (([:title, :name, :caption] & klass.new.methods) << :id).first
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/scaffold_helper.rb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/scaffold_helper.rb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/scaffold_helper.rb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/scaffold_helper.rb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/scaffold_helper.rb